MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testEnterpriseSupport

Method testEnterpriseSupport

tests/ApplicationOAuth.py:85–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertIsNone(access_token.refresh_expires_at)
84
85 def testEnterpriseSupport(self):
86 requester = self.ent_gh._Github__requester
87 self.assertEqual(requester.scheme, "http")
88 self.assertEqual(requester.hostname, "my.enterprise.com")
89 self.assertEqual(requester.hostname_and_port, "my.enterprise.com")
90 self.assertEqual(self.ent_app.get_oauth_url("auth"), "http://my.enterprise.com/login/oauth/auth")
91 gh_w_port = github.Github(
92 base_url="http://my.enterprise.com:443/path/to/github"
93 )._Github__requester.hostname_and_port
94 self.assertEqual(gh_w_port, "my.enterprise.com:443")
95
96 def testEnterpriseLoginURL(self):
97 BASE_URL = "http://my.enterprise.com/login/oauth/authorize"

Callers

nothing calls this directly

Calls 1

get_oauth_urlMethod · 0.80

Tested by

no test coverage detected