Skip to content

Commit

Permalink
test: wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwalke2 committed Aug 29, 2024
1 parent 63a5816 commit 1734a33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_pageiterator_no_paging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import unittest.mock
from unittest import mock

from sasctl.core import PageIterator, RestObj
Expand All @@ -9,6 +10,9 @@ def test_no_paging_required():
items = [{"name": "a"}, {"name": "b"}, {"name": "c"}]
obj = RestObj(items=items, count=len(items))

import sasctl
assert not isinstance(sasctl.core.request, unittest.mock.Mock)

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

0 comments on commit 1734a33

Please sign in to comment.