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

Method testStatisticsPunchCard

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

Source from the content-addressed store, hash-verified

2244 )
2245
2246 def testStatisticsPunchCard(self):
2247 with mock.patch("github.Requester.Consts.PROCESSING_202_WAIT_TIME", 0):
2248 stats = self.repo.get_stats_punch_card()
2249 self.assertEqual(stats.get(4, 12), 7)
2250 self.assertEqual(stats.get(6, 18), 2)
2251
2252 def testGetLicense(self):
2253 self.assertEqual(len(self.repo.get_license().content), 47646)

Callers

nothing calls this directly

Calls 3

patchMethod · 0.80
get_stats_punch_cardMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected