Skip to content

Commit

Permalink
Fix for type number changes. (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 authored and lidongze0629 committed Jun 8, 2021
1 parent b8a2881 commit 8001f56
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 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,15 @@ 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")] == [
graph_def_pb2.STRING,
graph_def_pb2.INT,
]
assert [p.type for p in graph.schema.get_edge_properties("group")] == [10, 4]


def test_multi_src_dst_edge_loader(
Expand Down

0 comments on commit 8001f56

Please sign in to comment.