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

Commitaf7651b

Browse files
committed
Update a test or two.
1 parent626244b commitaf7651b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎github3/github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def _list_follow(self, which):
4343
json=self._json(resp,200)
4444
return [User(f,self)forfinjson]
4545

46+
@requires_auth
4647
defauthorization(self,id_num):
4748
"""Get information about authorization ``id``.
4849

‎tests/test_github.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def test_login(self):
1313
# Test "regular" auth
1414
self.g.login(*self.fake_auth)
1515
h=github3.login(*self.fake_auth)
16-
foriin [self.g,h]:
16+
l=github3.GitHub(*self.fake_auth)
17+
foriin [self.g,h,l]:
1718
expect(self.fake_auth)==i._session.auth
1819

1920
deftest_oauth(self):
@@ -142,7 +143,7 @@ def test_repos(self):
142143
expect(self.g.list_repos(self.sigm))!= []
143144
expect(self.g.repository(self.sigm,self.todo)).is_not_None()
144145

145-
deftest_auths(self):
146+
deftest_requires_auth(self):
146147
withexpect.raises(github3.GitHubError):
147148
self.g.list_authorizations()
148149
self.g.authorization(-1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp