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

Method setUp

tests/RepositoryKey.py:49–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47
48class RepositoryKey(Framework.TestCase):
49 def setUp(self):
50 super().setUp()
51 # When recording test, be sure to create a deploy key for yourself on
52 # Github and update it here.
53 repo = self.g.get_user("lra").get_repo("mackup")
54 self.key = repo.get_key(21870881)
55 self.yet_unused_key = repo.get_key(98051552)
56
57 def testAttributes(self):
58 self.assertEqual(self.key.added_by, "key-admin-user")

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.80
get_repoMethod · 0.45
get_keyMethod · 0.45

Tested by

no test coverage detected