File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
graphdatascience/tests/integration Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -549,9 +549,11 @@ def test_graph_relationships_stream_with_arrow(gds: GraphDataScience) -> None:
549549
550550 result = gds .beta .graph .relationships .stream (G , ["REL" ])
551551
552+ expected = gds .run_cypher ("MATCH (n)-[REL]->(m) RETURN id(n) AS src_id, id(m) AS trg_id" )
553+
552554 assert list (result .keys ()) == ["sourceNodeId" , "targetNodeId" , "relationshipType" ]
553- assert {e for e in result ["sourceNodeId" ]} == {0 , 1 }
554- assert {e for e in result ["targetNodeId" ]} == {1 , 2 }
555+ assert {e for e in result ["sourceNodeId" ]} == {i for i in expected [ "src_id" ] }
556+ assert {e for e in result ["targetNodeId" ]} == {i for i in expected [ "trg_id" ] }
555557
556558
557559def test_graph_writeNodeProperties (gds : GraphDataScience ) -> None :
You can’t perform that action at this time.
0 commit comments