Skip to content

Commit

Permalink
Add a test for deleting artifacts (PyGithub#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Fedotov committed Sep 28, 2022
1 parent b07bdf3 commit 36f7fef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Artifact.py
Expand Up @@ -40,3 +40,10 @@ def testGetArtifactsFromRepo(self):
repr(artifact),
f'Artifact(name="vscode-codeql-extension", id={artifact_id})',
)

def testDelete(self):
artifact_id = 'XXXX'
repo_name = 'YYYY'
repo = self.g.get_repo(repo_name)
artifact = repo.get_artifact(artifact_id)
self.assertTrue(artifact.delete())

0 comments on commit 36f7fef

Please sign in to comment.