8000 Fix tests · aromanovich/github3.py@e511c07 · GitHub
[go: up one dir, main page]

Skip to content

Commit e511c07

Browse files
committed
Fix tests
1 parent a659884 commit e511c07

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
de A4CC f test_login(self):
21-
args = ('login', 'password', None)
21+
args = ('login', 'password', None, None)
2222
with patch.object(github3.api.GitHub, 'login') as login:
2323
g = github3.login(*args)
2424
assert isinstance(g, github3.github.GitHub)
2525
assert not isinstance(g, github3.github.GitHubEnterprise)
2626
login.assert_called_with(*args)
2727

2828
def test_enterprise_login(self):
29-
args = ('login', 'password', None, 'http://ghe.invalid/')
29+
args = ('login', 'password', None, 'http://ghe.invalid/', None)
3030
with patch.object(github3.api.GitHubEnterprise, 'login') as login:
3131
g = github3.login(*args)
3232
assert isinstance(g, github3.github.GitHubEnterprise)
33-
login.assert_called_with(*args[:3])
33+
login.assert_called_with('login', 'password', None, None)
3434

3535
def test_gist(self):
3636
args = (123,)

0 commit comments

Comments
 (0)
0