Skip to content

Commit 7f5a3ac

Browse files
committed
test: reset mock
1 parent 4419d87 commit 7f5a3ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/test_pageiterator_no_paging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def test_no_paging_required():
1010
obj = RestObj(items=items, count=len(items))
1111

1212
with mock.patch("sasctl.core.request") as req:
13+
req.reset_mock(visited=True, side_effect=True)
1314
pager = PageIterator(obj)
1415

1516
# Returned page of items should preserve item order
@@ -23,4 +24,4 @@ def test_no_paging_required():
2324
except AssertionError as e:
2425
raise AssertionError(
2526
f"method_calls={req.mock_calls} call_args={req.call_args_list}"
26-
)
27+
)

0 commit comments

Comments
 (0)