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

Method testStatisticsCodeFrequency

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

Source from the content-addressed store, hash-verified

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):
2120 stats = self.repo.get_stats_code_frequency()
2121 self.assertEqual(
2122 stats[0].week,
2123 datetime(2012, 2, 12, 0, 0, tzinfo=timezone.utc),
2124 )
2125 self.assertEqual(stats[0].additions, 3853)
2126 self.assertEqual(stats[0].deletions, -2098)
2127
2128 def testStatisticsParticipation(self):
2129 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