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

Method testDelete

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

Source from the content-addressed store, hash-verified

83 repo.get_artifact(artifact_id)
84
85 def testDelete(self):
86 artifact_id = 396724439
87 repo_name = "lexa/PyGithub"
88 repo = self.g.get_repo(repo_name)
89 artifact = repo.get_artifact(artifact_id)
90 self.assertTrue(artifact.delete())
91 with self.assertRaises(github.GithubException):
92 repo.get_artifact(artifact_id)

Callers

nothing calls this directly

Calls 3

get_artifactMethod · 0.80
get_repoMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected