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

Method setUp

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

Source from the content-addressed store, hash-verified

36 advisory: github.RepositoryAdvisory.RepositoryAdvisory
37
38 def setUp(self):
39 super().setUp()
40 self.repo = self.g.get_user().get_repo("security-research")
41 self.advisory = self.repo.get_repository_advisory("GHSA-wmmh-r9w4-hpxx")
42 self.advisory.clear_credits()
43 self.advisory.offer_credit("octocat", "analyst")
44
45 def testAttributes(self):
46 self.assertEqual(self.advisory.author.login, "JLLeitschuh")

Callers

nothing calls this directly

Calls 5

get_userMethod · 0.80
clear_creditsMethod · 0.80
offer_creditMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected