mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46: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))
|
copytree(p, cls.stash_for(p))
|
||||||
else:
|
else:
|
||||||
copyfile(p, cls.stash_for(p))
|
copyfile(p, cls.stash_for(p))
|
||||||
# Assert the file is copied
|
|
||||||
assert path.isfile(cls.stash_for(p))
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def retrieve_stashed_path(cls, p: str):
|
def retrieve_stashed_path(cls, p: str):
|
||||||
|
@ -231,9 +229,6 @@ class ServiceManager(Service):
|
||||||
rmtree(join(tempdir), ignore_errors=True)
|
rmtree(join(tempdir), ignore_errors=True)
|
||||||
makedirs(tempdir)
|
makedirs(tempdir)
|
||||||
|
|
||||||
# Assert the tempdir is empty
|
|
||||||
assert len(listdir(tempdir)) == 0
|
|
||||||
|
|
||||||
for p in [USERDATA_FILE, SECRETS_FILE, DKIM_DIR]:
|
for p in [USERDATA_FILE, SECRETS_FILE, DKIM_DIR]:
|
||||||
cls.stash_a_path(p)
|
cls.stash_a_path(p)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue