Skip to content

Commit

Permalink
test: mock session request
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwalke2 committed Aug 29, 2024
1 parent 1734a33 commit 02654fb
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 @@ -13,7 +13,8 @@ def test_no_paging_required():
import sasctl
assert not isinstance(sasctl.core.request, unittest.mock.Mock)

with mock.patch("sasctl.core.request") as req:
with mock.patch("sasctl.core.Session.request") as req:
# with mock.patch("sasctl.core.request") as req:
req.reset_mock(side_effect=True)
try:
req.assert_not_called()
Expand Down

0 comments on commit 02654fb

Please sign in to comment.