mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
test(backups): erase repos between tests
This commit is contained in:
parent
cfa7f4ae59
commit
00317cc7e4
|
@ -25,7 +25,8 @@ class NoneBackupper(AbstractBackupper):
|
||||||
|
|
||||||
def erase_repo(self) -> None:
|
def erase_repo(self) -> None:
|
||||||
"""Completely empties the remote"""
|
"""Completely empties the remote"""
|
||||||
raise NotImplementedError
|
# this one is already empty
|
||||||
|
pass
|
||||||
|
|
||||||
def restore_from_backup(self, snapshot_id: str, folders: List[str], verify=True):
|
def restore_from_backup(self, snapshot_id: str, folders: List[str], verify=True):
|
||||||
"""Restore a target folder using a snapshot"""
|
"""Restore a target folder using a snapshot"""
|
||||||
|
|
|
@ -66,7 +66,7 @@ def backups(tmpdir):
|
||||||
|
|
||||||
Backups.init_repo()
|
Backups.init_repo()
|
||||||
yield
|
yield
|
||||||
Backups.forget_all_snapshots()
|
Backups.erase_repo()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
|
|
Loading…
Reference in a new issue