8000 Fix test coverage for User.iter_keys · WheresWardy/github3.py@665a588 · GitHub
[go: up one dir, main page]

10000
Skip to content

Commit 665a588

Browse files
committed
Fix test coverage for User.iter_keys
Having the dependency on test-deps for make tests since it is an annoyance.
1 parent a18acfc commit 665a588

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ clean:
99
git clean -Xdf
1010
rm -rf build/ dist/
1111

12-
travis: test-deps
12+
travis:
1313
python $(TEST_RUNNER)
1414

1515
tests: travis

tests/test_users.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ def test_iter_subscriptions(self):
240240
self.mock_assertions()
241241

242242
def test_iter_keys(self):
243-
expect(next(self.user.iter_keys(1))).isinstance(Key)
243+
self.response('key', 200, _iter=True)
244+
self.get(self.api + '/keys')
245+
246+
expect(next(self.user.iter_keys())).isinstance(github3.users.Key)
247+
self.mock_assertions()
244248

245249
def test_update(self):
246250
self.response('user', 200)

0 commit comments

Comments
 (0)
0