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

Method testCreateTeamWithAllArguments

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

Source from the content-addressed store, hash-verified

234 self.assertEqual(team.id, 189850)
235
236 def testCreateTeamWithAllArguments(self):
237 repo = self.org.get_repo("FatherBeaver")
238 parent_team = self.org.get_team(141496)
239 maintainer = self.g.get_user("jacquev6")
240 team = self.org.create_team(
241 "Team also created by PyGithub",
242 [repo],
243 "push",
244 "secret",
245 "Description also created by PyGithub",
246 parent_team.id,
247 [maintainer.login],
248 "notifications_disabled",
249 )
250 self.assertEqual(team.id, 189852)
251 self.assertEqual(team.description, "Description also created by PyGithub")
252 self.assertEqual(team.parent, parent_team)
253 self.assertEqual(team.notification_setting, "notifications_disabled")
254 self.assertEqual(maintainer.login, team.get_members(role="maintainer")[0].name)
255
256 def testDeleteHook(self):
257 hook = self.org.create_hook("web", {"url": "http://foobar.com"})

Callers

nothing calls this directly

Calls 5

get_teamMethod · 0.80
get_userMethod · 0.80
create_teamMethod · 0.80
get_repoMethod · 0.45
get_membersMethod · 0.45

Tested by

no test coverage detected