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