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

Method setUp

tests/NamedUser.py:517–525  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

515
516class OrganizationInvitation(Framework.TestCase):
517 def setUp(self):
518 super().setUp()
519 # TODO: create an instance of type OrganizationInvitation and assign to self.attr, then run:
520 # pytest tests/OrganizationInvitation.py -k testAttributes --record
521 # ./scripts/update-assertions.sh tests/OrganizationInvitation.py testAttributes
522 self.org = self.g.get_organization("TestOrganization2072")
523 self.invitations = list(self.org.invitations())
524 self.assertGreater(len(self.invitations), 0)
525 self.invitation = self.invitations[0]
526
527 def testAttributes(self):
528 self.assertIsNotNone(self.invitation)

Callers

nothing calls this directly

Calls 3

get_organizationMethod · 0.80
setUpMethod · 0.45
invitationsMethod · 0.45

Tested by

no test coverage detected