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

Method testTotalCountWithDictionary

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

Source from the content-addressed store, hash-verified

317 self.assertEqual(0, repos.totalCount)
318
319 def testTotalCountWithDictionary(self):
320 # PullRequest.get_review_requests() actually returns a dictionary that
321 # we fudge into two lists, which means data is a dict, not a list.
322 # We should check the member, not data itself for totalCount.
323 pr = self.g.get_repo("PyGithub/PyGithub").get_pull(2078)
324 review_requests = pr.get_review_requests()
325 self.assertEqual(review_requests[0].totalCount, 0)
326 self.assertEqual(review_requests[1].totalCount, 0)
327
328 def testTotalCountWithDeprecationLink(self):
329 # Test the original reported scenario: search_issues with commit SHA

Callers

nothing calls this directly

Calls 3

get_pullMethod · 0.80
get_review_requestsMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected