mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-28 19:56:39 +00:00
chore: remove asserts
This commit is contained in:
parent
e2e14103bf
commit
f1872d8f94
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue