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

Method testGetArtifactsFromRepoWithName

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

Source from the content-addressed store, hash-verified

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")
48 self.assertEqual(artifacts.totalCount, 296)
49 assert all(x.name == "build-tar" for x in artifacts)
50
51 artifact = artifacts[0]
52
53 self.assertEqual(artifact.name, "build-tar")
54 self.assertEqual(repr(artifact), 'Artifact(name="build-tar", id=724959170)')
55
56 def testGetSingleArtifactFromRepo(self):
57 artifact = self.repo.get_artifact(719509139)

Callers

nothing calls this directly

Calls 1

get_artifactsMethod · 0.45

Tested by

no test coverage detected