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

Method testShouldNotDeferRequests

tests/Requester.py:589–597  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

587
588class RequesterUnThrottled(RequesterThrottleTestCase):
589 def testShouldNotDeferRequests(self):
590 with self.mock_sleep() as sleep_mock:
591 # same test setup as in RequesterThrottled.testShouldDeferRequests
592 with self.replayData("RequesterThrottleTestCase.testDeferRequests.txt"):
593 repository = self.g.get_repo(REPO_NAME)
594 releases = list(repository.get_releases())
595 self.assertEqual(len(releases), 30)
596
597 sleep_mock.assert_not_called()
598
599
600class RequesterThrottled(RequesterThrottleTestCase):

Callers

nothing calls this directly

Calls 4

mock_sleepMethod · 0.80
replayDataMethod · 0.80
get_releasesMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected