File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ def test_no_paging_required():
11
11
12
12
with mock .patch ("sasctl.core.request" ) as req :
13
13
req .reset_mock (side_effect = True )
14
+ try :
15
+ req .assert_not_called ()
16
+ except AssertionError :
17
+ raise AssertionError (
18
+ f"Previous calls: method_calls={ req .mock_calls } call_args={ req .call_args_list } "
19
+ )
20
+
14
21
pager = PageIterator (obj )
15
22
16
23
# Returned page of items should preserve item order
@@ -21,7 +28,7 @@ def test_no_paging_required():
21
28
# No req should have been made to retrieve additional data.
22
29
try :
23
30
req .assert_not_called ()
24
- except AssertionError as e :
31
+ except AssertionError :
25
32
raise AssertionError (
26
33
f"method_calls={ req .mock_calls } call_args={ req .call_args_list } "
27
34
)
You can’t perform that action at this time.
0 commit comments