(self)
| 39 | |
| 40 | class 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( |
nothing calls this directly
no test coverage detected