Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for type number changes. #388

Merged
merged 1 commit into from
Jun 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions python/tests/test_create_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from graphscope.framework.errors import AnalyticalEngineInternalError
from graphscope.framework.graph import Graph
from graphscope.framework.loader import Loader
from graphscope.proto import graph_def_pb2


@pytest.fixture
Expand Down Expand Up @@ -245,12 +246,12 @@ def test_loader_with_specified_data_type(
student_group_e, "group", ["group_id", ("member_size", "int")]
)
assert [p.type for p in graph.schema.get_vertex_properties("student")] == [
10,
4,
8,
10,
graph_def_pb2.STRING,
graph_def_pb2.INT,
graph_def_pb2.FLOAT,
graph_def_pb2.STRING
]
assert [p.type for p in graph.schema.get_edge_properties("group")] == [10, 4]
assert [p.type for p in graph.schema.get_edge_properties("group")] == [graph_def_pb2.STRING, graph_def_pb2.INT]


def test_multi_src_dst_edge_loader(
Expand Down