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

Method testCreateDispatchException

tests/Workflow.py:160–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.assertFalse(workflow.create_dispatch("main"))
159
160 def testCreateDispatchException(self):
161 workflow = self.g.get_repo("test-org/test-repo").get_workflow("workflow-with-params.yaml")
162 with self.assertRaises(GithubException) as raisedexp:
163 workflow.create_dispatch("main", throw=True)
164 self.assertEqual(raisedexp.exception.status, 422)
165 self.assertEqual(raisedexp.exception.data["message"], "Required input 'mandatory-parameter' not provided")
166
167 def testDisable(self):
168 workflow = self.g.get_repo("nickrmcclorey/PyGithub").get_workflow("ci.yml")

Callers

nothing calls this directly

Calls 3

get_workflowMethod · 0.80
create_dispatchMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected