Skip to content

Commit 39cc8af

Browse files
committed
test: debug mock reset
1 parent 28cd970 commit 39cc8af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit/test_pageiterator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def test_no_paging_required():
6969
# above. Depending on execution order, this can result in calls to the mock
7070
# made by other tests to be counted here. Explicitly reset to prevent this.
7171
req.reset_mock()
72+
try:
73+
req.assert_not_called()
74+
except AssertionError as e:
75+
raise AssertionError(
76+
f"method_calls={req.mock_calls} call_args={req.call_args_list}"
77+
)
78+
7279
pager = PageIterator(obj)
7380

7481
# Returned page of items should preserve item order

0 commit comments

Comments
 (0)