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

Method testEditHookWithAllParameters

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

Source from the content-addressed store, hash-verified

223 self.assertEqual(hook.name, "mobile")
224
225 def testEditHookWithAllParameters(self):
226 hook = self.org.create_hook("web", {"url": "http://foobar.com"}, ["fork"], False)
227 hook = self.org.edit_hook(hook.id, "mobile", {"url": "http://barfoo.com"}, ["spoon"], True)
228 self.assertEqual(hook.name, "mobile")
229 self.assertEqual(hook.events, ["spoon"])
230 self.assertEqual(hook.active, True)
231
232 def testCreateTeam(self):
233 team = self.org.create_team("Team created by PyGithub")

Callers

nothing calls this directly

Calls 2

edit_hookMethod · 0.80
create_hookMethod · 0.45

Tested by

no test coverage detected