Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschowe committed Sep 19, 2024
1 parent 1d073e8 commit 4a5fb97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pontos/github/api/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ async def delete_package_with_tag(
):
api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions/{package_version.id}"
response = await self._client.delete(api)
print("deleted")

Check warning on line 361 in pontos/github/api/packages.py

View check run for this annotation

Codecov / codecov/patch

pontos/github/api/packages.py#L359-L361

Added lines #L359 - L361 were not covered by tests
if not response.is_success:
raise GitHubApiError(response)

Check warning on line 363 in pontos/github/api/packages.py

View check run for this annotation

Codecov / codecov/patch

pontos/github/api/packages.py#L363

Added line #L363 was not covered by tests
return response
api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions/tags/{tag}"
response = await self._client.delete(api)
if not response.is_success:
raise GitHubApiError(response)

Check warning on line 367 in pontos/github/api/packages.py

View check run for this annotation

Codecov / codecov/patch

pontos/github/api/packages.py#L367

Added line #L367 was not covered by tests
2 changes: 1 addition & 1 deletion tests/github/api/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,5 @@ async def test_delete_package_with_tag(self):
)

self.client.delete.assert_awaited_once_with(
"/orgs/foo/packages/container/bar/versions/1"
"/orgs/foo/packages/container/bar/versions/tags/latest"
)

0 comments on commit 4a5fb97

Please sign in to comment.