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

Method testConversion

tests/Issue54.py:43–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.repo = self.g.get_user().get_repo("TestRepo")
42
43 def testConversion(self):
44 commit = self.repo.get_git_commit("73f320ae06cd565cf38faca34b6a482addfc721b")
45 self.assertEqual(
46 commit.message,
47 "Test commit created around Fri, 13 Jul 2012 18:43:21 GMT, that is vendredi 13 juillet 2012 20:43:21 GMT+2\n",
48 )
49 self.assertEqual(
50 commit.author.date,
51 datetime(2012, 7, 13, 18, 47, 10, tzinfo=timezone.utc),
52 )

Callers

nothing calls this directly

Calls 1

get_git_commitMethod · 0.80

Tested by

no test coverage detected