Skip to content

Commit c1f6ed9

Browse files
committed
test(unit): assert edge_id mapping in test_edges_are_wrapped_as_edge_results
The edge_id → EdgeResult.id mapping was part of the wrapper contract but was not verified. Node mapping was tested (result.nodes[0].id == 1) but the equivalent edge check was missing.
1 parent 004eb22 commit c1f6ed9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/unit/test_schema_crud.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def test_edges_are_wrapped_as_edge_results(self):
168168
result = TraverseResult(_FakeTraverseResponse(edges=edges))
169169
assert len(result.edges) == 1
170170
assert isinstance(result.edges[0], EdgeResult)
171+
assert result.edges[0].id == 10
171172
assert result.edges[0].source_id == 1
172173
assert result.edges[0].target_id == 2
173174
assert result.edges[0].type == "KNOWS"

0 commit comments

Comments
 (0)