From c9597982b1b3232f5a3b743f138a33d6884b8d1b Mon Sep 17 00:00:00 2001 From: Gabriel Schowe Date: Wed, 18 Sep 2024 16:00:48 +0200 Subject: [PATCH] Iterator stuff --- pontos/github/api/packages.py | 2 +- tests/github/api/test_packages.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pontos/github/api/packages.py b/pontos/github/api/packages.py index 58ddb83fb..a270ec9e6 100644 --- a/pontos/github/api/packages.py +++ b/pontos/github/api/packages.py @@ -344,7 +344,7 @@ async def delete_package_with_tag( tag="latest", ) """ - async for package_version in self.package_versions(organization, package_type, package_name): + for package_version in self.package_versions(organization, package_type, package_name): print(package_version) api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions/tags/{tag}" response = await self._client.delete(api) diff --git a/tests/github/api/test_packages.py b/tests/github/api/test_packages.py index 9fca9f25d..6a5e4af16 100644 --- a/tests/github/api/test_packages.py +++ b/tests/github/api/test_packages.py @@ -162,7 +162,6 @@ async def test_package_version(self): ) self.assertEqual(package_version.metadata.container.tags, ["latest"]) - # line 200 - 242 async def test_package_version_tags(self): response = create_response()