(self)
| 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): |
nothing calls this directly
no test coverage detected