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

Method testGetArtifactsFromWorkflow

tests/Artifact.py:39–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.repo = self.g.get_repo("transmission-web-control/transmission-web-control")
38
39 def testGetArtifactsFromWorkflow(self):
40 artifact = self.repo.get_workflow_run(5138169628).get_artifacts()[0]
41
42 self.assertEqual(artifact.name, "build-tar")
43 self.assertFalse(artifact.expired)
44 self.assertEqual(repr(artifact), 'Artifact(name="build-tar", id=724958104)')
45
46 def testGetArtifactsFromRepoWithName(self):
47 artifacts = self.repo.get_artifacts(name="build-tar")

Callers

nothing calls this directly

Calls 2

get_workflow_runMethod · 0.80
get_artifactsMethod · 0.45

Tested by

no test coverage detected