8000
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 7f7901f commit 965f0bdCopy full SHA for 965f0bd
tests/test_structs.py
@@ -1,10 +1,6 @@
1
import github3
2
from github3.structs import GitHubIterator
3
-from tests.utils import BaseCase
4
-try:
5
- from unittest.mock import patch
6
-except Imp 882A ortError:
7
- from mock import patch
+from tests.utils import BaseCase, mock
8
9
10
class TestGitHubIterator(BaseCase):
@@ -74,7 +70,7 @@ def test_count_reaches_0(self):
74
70
self.mock_assertions()
75
71
76
72
def test_refresh(self):
77
- with patch.object(GitHubIterator, '__iter__') as i:
73
+ with mock.patch.object(GitHubIterator, '__iter__') as i:
78
self.i.refresh()
79
i.__iter__.assert_called()
80
0 commit comments