chore: remove asserts

This commit is contained in:
Inex Code 2024-12-15 14:39:07 +03:00
parent e2e14103bf
commit f1872d8f94
No known key found for this signature in database

View file

@ -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)