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

Method testEditHookWithMinimalParameters

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

Source from the content-addressed store, hash-verified

218 self.assertEqual(self.org.name, "Name edited by PyGithub")
219
220 def testEditHookWithMinimalParameters(self):
221 hook = self.org.create_hook("web", {"url": "http://foobar.com"})
222 hook = self.org.edit_hook(hook.id, "mobile", {"url": "http://barfoo.com"})
223 self.assertEqual(hook.name, "mobile")
224
225 def testEditHookWithAllParameters(self):
226 hook = self.org.create_hook("web", {"url": "http://foobar.com"}, ["fork"], False)

Callers

nothing calls this directly

Calls 2

edit_hookMethod · 0.80
create_hookMethod · 0.45

Tested by

no test coverage detected