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