(self)
| 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") |
nothing calls this directly
no test coverage detected