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

Method testOfferCredit

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

Source from the content-addressed store, hash-verified

123 )
124
125 def testOfferCredit(self):
126 self.advisory.offer_credit("JLLeitschuh", "reporter")
127 self.assertListKeyEqual(
128 self.advisory.credits,
129 lambda e: e.login,
130 ["octocat", "JLLeitschuh"],
131 )
132 self.assertListKeyEqual(
133 self.advisory.credits_detailed,
134 lambda e: e.user.login,
135 ["octocat", "JLLeitschuh"],
136 )
137
138 def testOfferCredits(self):
139 self.advisory.clear_credits()

Callers

nothing calls this directly

Calls 2

offer_creditMethod · 0.80
assertListKeyEqualMethod · 0.80

Tested by

no test coverage detected