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

Method testStatisticsCommitActivity

tests/Repository.py:2108–2116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2106 self.assertTrue(seenJacquev6)
2107
2108 def testStatisticsCommitActivity(self):
2109 with mock.patch("github.Requester.Consts.PROCESSING_202_WAIT_TIME", 0):
2110 stats = self.repo.get_stats_commit_activity()
2111 self.assertEqual(
2112 stats[0].week,
2113 datetime(2012, 11, 18, 0, 0, tzinfo=timezone.utc),
2114 )
2115 self.assertEqual(stats[0].total, 29)
2116 self.assertEqual(stats[0].days, [0, 7, 3, 9, 7, 3, 0])
2117
2118 def testStatisticsCodeFrequency(self):
2119 with mock.patch("github.Requester.Consts.PROCESSING_202_WAIT_TIME", 0):

Callers

nothing calls this directly

Calls 2

patchMethod · 0.80

Tested by

no test coverage detected