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

Method testHttps

tests/Enterprise.py:45–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43# Replay data for this test case is forged, because I don't have access to a real Github Enterprise install
44class Enterprise(Framework.BasicTestCase):
45 def testHttps(self):
46 g = github.Github(auth=self.oauth_token, base_url="https://my.enterprise.com")
47 self.assertListKeyEqual(
48 g.get_user().get_repos(),
49 lambda r: r.name,
50 [
51 "TestPyGithub",
52 "django",
53 "PyGithub",
54 "developer.github.com",
55 "acme-public-website",
56 "C4Planner",
57 "Hacking",
58 "vincent-jacques.net",
59 "Contests",
60 "Candidates",
61 "Tests",
62 "DrawTurksHead",
63 "DrawSyntax",
64 "QuadProgMm",
65 "Boost.HierarchicalEnum",
66 "ViDE",
67 ],
68 )
69
70 def testHttp(self):
71 g = github.Github(auth=self.oauth_token, base_url="http://my.enterprise.com")

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.95
assertListKeyEqualMethod · 0.80
get_reposMethod · 0.45

Tested by

no test coverage detected