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

Method testInviteUserWithRoleAndTeam

tests/Organization.py:589–591  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

587 self.org.invite_user(email="foo@example.com")
588
589 def testInviteUserWithRoleAndTeam(self):
590 team = self.org.create_team("Team created by PyGithub")
591 self.org.invite_user(email="foo@example.com", role="billing_manager", teams=[team])
592
593 def testInviteUserAsNonOwner(self):
594 with self.assertRaises(github.GithubException) as raisedexp:

Callers

nothing calls this directly

Calls 2

create_teamMethod · 0.80
invite_userMethod · 0.80

Tested by

no test coverage detected