Skip to content

Commit cbb19f9

Browse files
committed
fix: test
1 parent 6c7bb5c commit cbb19f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

decoy/matchers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def __eq__(self, target: object) -> bool:
245245
)
246246

247247
def __repr__(self) -> str:
248+
"""Return a string representation of the matcher."""
248249
return f"<ArrayMatching {self._values!r}>"
249250

250251

tests/test_matchers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ def test_array_matching_matcher() -> None:
110110
[{"yoo": "mann"}]
111111
)
112112

113+
assert 1 != matchers.ArrayMatching([1])
114+
115+
assert str(matchers.ArrayMatching([1])) == "<ArrayMatching [1]>"
116+
113117

114118
def test_string_matching_matcher() -> None:
115119
"""It should have an "any string that matches" matcher."""

0 commit comments

Comments
 (0)