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

Method testBaseUrlPrefixRedirection

tests/Requester.py:260–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 )
259
260 def testBaseUrlPrefixRedirection(self):
261 # replay data forged
262 gh = github.Github(base_url="https://api.github.com/api/v3")
263 self.assertEqual(gh.get_repo("PyGithub/PyGithub").name, "PyGithub")
264 self.logger.info.assert_called_once_with(
265 "Following Github server redirection from /api/v3/repos/PyGithub/PyGithub to /repos/PyGithub/PyGithub"
266 )
267
268 def testHostnameHasDomain(self):
269 assert self.g.requester.__hostnameHasDomain("github.com", "github.com")

Callers

nothing calls this directly

Calls 1

get_repoMethod · 0.95

Tested by

no test coverage detected