Skip to content

Commit

Permalink
fix test path primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed Mar 16, 2024
1 parent d4acd12 commit 9c1f685
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,9 @@ def _cast_relationship(edge: Edge):
path_primitive = path_raw.cast_primitive()
assert path_primitive == {
"path_str": path.__repr__(),
"start_node": _cast_node(path.start_node().cast()),
"nodes": [_cast_node(node) for node in path.nodes()],
"relationships": [
_cast_relationship(relationship)
for relationship in path.relationships()
],
"start_node": _cast_node(path.start_node()),
"edges": [_cast_relationship(x) for x in path.relationships()],
"nodes": [_cast_node(x) for x in path.nodes()],
}

# Test geography
Expand Down

0 comments on commit 9c1f685

Please sign in to comment.