Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37322aa

Browse files
committed
Fix a couple tests.
1 parentfce263f commit37322aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎github3/github.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def list_following(self, login=None):
420420
"""
421421
iflogin:
422422
returnself.user(login).iter_following()
423-
returnself._list_follow('following')
423+
returnself._iter_follow('following')
424424

425425
defiter_following(self,login=None,number=-1):
426426
"""If login is provided, iterate over a list of users being followed

‎tests/test_github.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_gists(self):
5050

5151
deftest_iter_gists(self):
5252
foruserinNone,self.sigm:
53-
expect(next(self.g.list_gists(user))).isinstance(Gist)
53+
expect(next(self.g.iter_gists(user))).isinstance(Gist)
5454

5555
deftest_list_gists(self):
5656
foriinNone,self.sigm:
@@ -99,7 +99,7 @@ def test_is_subscribed(self):
9999

100100
deftest_iter_following(self):
101101
expect(next(self.g.iter_following(self.kr))).isinstance(User)
102-
self.raisesGHE(self.g.iter_following)
102+
self.raisesGHE(next,self.g.iter_following())
103103
ifnotself.auth:
104104
return
105105

@@ -116,7 +116,7 @@ def test_list_following(self):
116116

117117
deftest_iter_followers(self):
118118
expect(next(self.g.iter_followers(self.kr))).isinstance(User)
119-
self.raisesGHE(self.g.iter_followers)
119+
self.raisesGHE(next,self.g.iter_followers())
120120
ifnotself.auth:
121121
return
122122

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp