8000 Fix up no-op test · pythonthings/github3.py@93cdef3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93cdef3

Browse files
committed
Fix up no-op test
1 parent 8cdb711 commit 93cdef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_structs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def test_count_reaches_0(self):
7272
def test_refresh(self):
7373
with mock.patch.object(GitHubIterator, '__iter__') as i:
7474
self.i.refresh()
75-
i.__iter__.assert_called()
75+
assert i.called is True
7676

7777
i.reset_mock()
7878
self.i.refresh(True)
79-
i.__iter__.assert_called()
79+
assert i.called is True

0 commit comments

Comments
 (0)
0