Skip to content

Commit f69e7b7

Browse files
committed
test(unit): tighten repr assertions in test_repr_shows_counts
Replace bare "1" and "0" substring checks with "nodes=1" and "edges=0" so the test catches incorrect counts like nodes=10 that would otherwise satisfy the weaker assertions.
1 parent ff59dd1 commit f69e7b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_schema_crud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,5 @@ def test_repr_shows_counts(self):
184184
nodes = [_FakeNode(1, [])]
185185
result = TraverseResult(_FakeTraverseResponse(nodes=nodes))
186186
r = repr(result)
187-
assert "1" in r # 1 node
188-
assert "0" in r # 0 edges
187+
assert "nodes=1" in r
188+
assert "edges=0" in r

0 commit comments

Comments
 (0)