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

Method testOfferCredits

tests/RepositoryAdvisory.py:138–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 )
137
138 def testOfferCredits(self):
139 self.advisory.clear_credits()
140 self.advisory.offer_credits(
141 [
142 {"login": "octocat", "type": "sponsor"},
143 {"login": "JLLeitschuh", "type": "reporter"},
144 ]
145 )
146 self.assertListKeyEqual(
147 self.advisory.credits_detailed,
148 lambda e: (e.user.login, e.type),
149 [("octocat", "sponsor"), ("JLLeitschuh", "reporter")],
150 )
151
152 def testRepositoryWithNoAdvisories(self):
153 repo = self.g.get_user().get_repo("PyGithub")

Callers

nothing calls this directly

Calls 3

clear_creditsMethod · 0.80
offer_creditsMethod · 0.80
assertListKeyEqualMethod · 0.80

Tested by

no test coverage detected