We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentaf9b316 commitb9d4cb7Copy full SHA for b9d4cb7
tests/test_api.py
@@ -18,19 +18,19 @@ def test_authorize(self):
18
self.gh.authorize.assert_called_with(*args)
19
20
deftest_login(self):
21
-args= ('login','password',None)
+args= ('login','password',None,None)
22
withpatch.object(github3.api.GitHub,'login')aslogin:
23
g=github3.login(*args)
24
assertisinstance(g,github3.github.GitHub)
25
assertnotisinstance(g,github3.github.GitHubEnterprise)
26
login.assert_called_with(*args)
27
28
deftest_enterprise_login(self):
29
-args= ('login','password',None,'http://ghe.invalid/')
+args= ('login','password',None,'http://ghe.invalid/',None)
30
withpatch.object(github3.api.GitHubEnterprise,'login')aslogin:
31
32
assertisinstance(g,github3.github.GitHubEnterprise)
33
-login.assert_called_with(*args[:3])
+login.assert_called_with('login','password',None,None)
34
35
deftest_gist(self):
36
args= (123,)