(self)
| 43 | # Replay data for this test case is forged, because I don't have access to a real Github Enterprise install |
| 44 | class 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") |
nothing calls this directly
no test coverage detected