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

Method testGetArtifactsFromRepo

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

Source from the content-addressed store, hash-verified

61 self.assertEqual(repr(artifact), 'Artifact(name="build-zip", id=719509139)')
62
63 def testGetArtifactsFromRepo(self):
64 artifact_id = 719509139
65 artifacts = self.repo.get_artifacts()
66 for item in artifacts:
67 if item.id == artifact_id:
68 artifact = item
69 break
70 else:
71 assert False, f"No artifact {artifact_id} is found"
72
73 self.assertEqual(
74 repr(artifact),
75 f'Artifact(name="build-zip", id={artifact_id})',
76 )
77
78 def testGetNonexistentArtifact(self):
79 artifact_id = 396724437

Callers

nothing calls this directly

Calls 1

get_artifactsMethod · 0.45

Tested by

no test coverage detected