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

Method testCustomPerPageReversedIteration

tests/PaginatedList.py:365–380  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 )
364
365 def testCustomPerPageReversedIteration(self):
366 self.g.per_page = 3
367 repo = self.g.get_repo("PyGithub/PyGithub")
368 comments = repo.get_issue(1136).get_comments().reversed
369 self.assertEqual(
370 [
371 datetime(2024, 3, 24, 13, 58, 57, tzinfo=timezone.utc),
372 datetime(2024, 3, 21, 14, 2, 22, tzinfo=timezone.utc),
373 datetime(2024, 3, 21, 10, 55, 14, tzinfo=timezone.utc),
374 datetime(2024, 3, 20, 15, 24, 15, tzinfo=timezone.utc),
375 datetime(2024, 1, 6, 17, 34, 11, tzinfo=timezone.utc),
376 datetime(2024, 1, 6, 16, 4, 34, tzinfo=timezone.utc),
377 datetime(2019, 8, 10, 18, 16, 46, tzinfo=timezone.utc),
378 ],
379 [comment.created_at for comment in comments],
380 )
381
382 def testCustomPerPageReversedIterationSinglePage(self):
383 self.g.per_page = 4

Callers

nothing calls this directly

Calls 3

get_repoMethod · 0.45
get_commentsMethod · 0.45
get_issueMethod · 0.45

Tested by

no test coverage detected