We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e534af commit 28cd970Copy full SHA for 28cd970
tests/unit/test_pageiterator.py
@@ -65,6 +65,10 @@ def test_no_paging_required():
65
obj = RestObj(items=items, count=len(items))
66
67
with mock.patch("sasctl.core.request") as req:
68
+ # Mock appears to be *sometimes* shared with mock created in `paging` fixture
69
+ # above. Depending on execution order, this can result in calls to the mock
70
+ # made by other tests to be counted here. Explicitly reset to prevent this.
71
+ req.reset_mock()
72
pager = PageIterator(obj)
73
74
# Returned page of items should preserve item order
0 commit comments