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

Method testCreateDispatchWithTag

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

Source from the content-addressed store, hash-verified

141 self.assertTrue(workflow.create_dispatch(branch, dispatch_inputs))
142
143 def testCreateDispatchWithTag(self):
144 dispatch_inputs = {"logLevel": "Warning", "message": "Log Message"}
145 workflow = self.g.get_repo("wrecker/PyGithub").get_workflow("manual_dispatch.yml")
146 tags = self.g.get_repo("wrecker/PyGithub").get_tags()
147 tag = [t for t in tags if t.name == "workflow_dispatch_tag"].pop()
148 self.assertTrue(workflow.create_dispatch(tag, dispatch_inputs))
149
150 def testCreateDispatchWithString(self):
151 dispatch_inputs = {"logLevel": "Warning", "message": "Log Message"}

Callers

nothing calls this directly

Calls 4

get_workflowMethod · 0.80
get_tagsMethod · 0.80
create_dispatchMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected