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

Commitb9d4cb7

Browse files
committed
Fix tests
1 parentaf9b316 commitb9d4cb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ def test_authorize(self):
1818
self.gh.authorize.assert_called_with(*args)
1919

2020
deftest_login(self):
21-
args= ('login','password',None)
21+
args= ('login','password',None,None)
2222
withpatch.object(github3.api.GitHub,'login')aslogin:
2323
g=github3.login(*args)
2424
assertisinstance(g,github3.github.GitHub)
2525
assertnotisinstance(g,github3.github.GitHubEnterprise)
2626
login.assert_called_with(*args)
2727

2828
deftest_enterprise_login(self):
29-
args= ('login','password',None,'http://ghe.invalid/')
29+
args= ('login','password',None,'http://ghe.invalid/',None)
3030
withpatch.object(github3.api.GitHubEnterprise,'login')aslogin:
3131
g=github3.login(*args)
3232
assertisinstance(g,github3.github.GitHubEnterprise)
33-
login.assert_called_with(*args[:3])
33+
login.assert_called_with('login','password',None,None)
3434

3535
deftest_gist(self):
3636
args= (123,)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp