diff --git a/selfprivacy_api/backup/backuppers/restic_backupper.py b/selfprivacy_api/backup/backuppers/restic_backupper.py index fd653e6..b7ceb90 100644 --- a/selfprivacy_api/backup/backuppers/restic_backupper.py +++ b/selfprivacy_api/backup/backuppers/restic_backupper.py @@ -197,6 +197,7 @@ class ResticBackupper(AbstractBackupper): output, "parsed messages:", messages, + backup_command, ) from error @staticmethod diff --git a/tests/test_graphql/test_backup.py b/tests/test_graphql/test_backup.py index 882e086..32b5d40 100644 --- a/tests/test_graphql/test_backup.py +++ b/tests/test_graphql/test_backup.py @@ -52,9 +52,11 @@ TESTFILE_BODY = "testytest!" TESTFILE_2_BODY = "testissimo!" REPO_NAME = "test_backup" +REPOFILE_NAME = "totallyunrelated" + def prepare_localfile_backups(temp_dir): - test_repo_path = path.join(temp_dir, "totallyunrelated") + test_repo_path = path.join(temp_dir, REPOFILE_NAME) assert not path.exists(test_repo_path) Backups.set_localfile_repo(test_repo_path) @@ -79,6 +81,7 @@ def backups(tmpdir): # assert not repo_path Backups.init_repo() + assert Backups.provider().location == str(tmpdir) + "/" + REPOFILE_NAME yield Backups.erase_repo()