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

Method testIgnoreHttpsFromGithubEnterpriseWithPort

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

Source from the content-addressed store, hash-verified

47 ) # But still http in second request based on org.url
48
49 def testIgnoreHttpsFromGithubEnterpriseWithPort(self):
50 g = github.Github(
51 auth=self.oauth_token,
52 base_url="http://my.enterprise.com:1234/some/prefix",
53 ) # http here
54 org = g.get_organization("BeaverSoftware")
55 self.assertEqual(org.url, "https://my.enterprise.com:1234/some/prefix/orgs/BeaverSoftware") # https returned
56 self.assertListKeyEqual(
57 org.get_repos(), lambda r: r.name, ["FatherBeaver", "TestPyGithub"]
58 ) # But still http in second request based on org.url

Callers

nothing calls this directly

Calls 3

get_organizationMethod · 0.95
assertListKeyEqualMethod · 0.80
get_reposMethod · 0.45

Tested by

no test coverage detected