Skip to content

Commit f30d1e5

Browse files
committed
test: cleanup
1 parent 02654fb commit f30d1e5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/unit/test_pageiterator_no_paging.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import unittest.mock
21
from unittest import mock
32

43
from sasctl.core import PageIterator, RestObj
@@ -10,19 +9,7 @@ def test_no_paging_required():
109
items = [{"name": "a"}, {"name": "b"}, {"name": "c"}]
1110
obj = RestObj(items=items, count=len(items))
1211

13-
import sasctl
14-
assert not isinstance(sasctl.core.request, unittest.mock.Mock)
15-
1612
with mock.patch("sasctl.core.Session.request") as req:
17-
# with mock.patch("sasctl.core.request") as req:
18-
req.reset_mock(side_effect=True)
19-
try:
20-
req.assert_not_called()
21-
except AssertionError:
22-
raise AssertionError(
23-
f"Previous calls: method_calls={req.mock_calls} call_args={req.call_args_list}"
24-
)
25-
2613
pager = PageIterator(obj)
2714

2815
# Returned page of items should preserve item order

0 commit comments

Comments
 (0)