From: Michael Tremer Date: Tue, 18 Oct 2022 13:21:49 +0000 (+0000) Subject: tests: package: Activate part that checks if a package has been removed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57550fe01f4faa3fb4c2b99e6dd8407b1f33829e;p=pbs.git tests: package: Activate part that checks if a package has been removed Signed-off-by: Michael Tremer --- diff --git a/tests/package.py b/tests/package.py index fcd46102..9024ada7 100755 --- a/tests/package.py +++ b/tests/package.py @@ -79,13 +79,15 @@ no notion of what's interesting, but it's real good at that notifying part.""") with self.db.transaction(): package = await self._create_package(path) + # Store the package path for later + path = package.path + # Delete the package with self.db.transaction(): - package.delete() + await package.delete() # Check if the payload has been removed - # XXX currently, packages are not deleted - #self.assertFalse(os.path.exists(package.path)) + self.assertFalse(os.path.exists(path)) async def test_files(self): """