Skip to content

Commit

Permalink
test: reset mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwalke2 committed Aug 29, 2024
1 parent 4419d87 commit 7f5a3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_pageiterator_no_paging.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def test_no_paging_required():
obj = RestObj(items=items, count=len(items))

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

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

0 comments on commit 7f5a3ac

Please sign in to comment.