From f1872d8f94a2247256bdf5a1d375fad89cf45eb0 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sun, 15 Dec 2024 14:39:07 +0300 Subject: [PATCH] chore: remove asserts --- selfprivacy_api/services/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/selfprivacy_api/services/__init__.py b/selfprivacy_api/services/__init__.py index 38c26c7..2aa776c 100644 --- a/selfprivacy_api/services/__init__.py +++ b/selfprivacy_api/services/__init__.py @@ -211,8 +211,6 @@ class ServiceManager(Service): copytree(p, cls.stash_for(p)) else: copyfile(p, cls.stash_for(p)) - # Assert the file is copied - assert path.isfile(cls.stash_for(p)) @classmethod def retrieve_stashed_path(cls, p: str): @@ -231,9 +229,6 @@ class ServiceManager(Service): rmtree(join(tempdir), ignore_errors=True) makedirs(tempdir) - # Assert the tempdir is empty - assert len(listdir(tempdir)) == 0 - for p in [USERDATA_FILE, SECRETS_FILE, DKIM_DIR]: cls.stash_a_path(p)