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

Method testIgnoreHttpsFromGithubEnterprise

tests/Issue80.py:41–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39
40class Issue80(Framework.BasicTestCase): # https://github.com/jacquev6/PyGithub/issues/80
41 def testIgnoreHttpsFromGithubEnterprise(self):
42 g = github.Github(auth=self.oauth_token, base_url="http://my.enterprise.com/some/prefix") # http here
43 org = g.get_organization("BeaverSoftware")
44 self.assertEqual(org.url, "https://my.enterprise.com/some/prefix/orgs/BeaverSoftware") # https returned
45 self.assertListKeyEqual(
46 org.get_repos(), lambda r: r.name, ["FatherBeaver", "TestPyGithub"]
47 ) # But still http in second request based on org.url
48
49 def testIgnoreHttpsFromGithubEnterpriseWithPort(self):
50 g = github.Github(

Callers

nothing calls this directly

Calls 3

get_organizationMethod · 0.95
assertListKeyEqualMethod · 0.80
get_reposMethod · 0.45

Tested by

no test coverage detected