mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Clarify two separate uses of name create_repository
It is being used to mean initialize the borg repository as well as creating an instance of the repository class object. Use 'initialize' for former and 'get_instance' for latter. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
6c14e34875
commit
5b01689a92
3 files changed
+20
-20
No files matched your search
@@ -89,7 +89,7 @@ def test_create_unencrypted_repository(backup_directory):
|
||||
"""Test creating an unencrypted repository."""
|
||||
path = backup_directory / 'borgbackup'
|
||||
repository = BorgRepository(str(path))
|
||||
repository.create_repository()
|
||||
repository.initialize()
|
||||
info = repository.get_info()
|
||||
assert 'encryption' in info
|
||||
|
||||
@@ -106,7 +106,7 @@ def test_create_export_delete_archive(data_directory, backup_directory):
|
||||
path = backup_directory / repo_name
|
||||
|
||||
repository = BorgRepository(str(path))
|
||||
repository.create_repository()
|
||||
repository.initialize()
|
||||
archive_path = "::".join([str(path), archive_name])
|
||||
actions.superuser_run('backups', [
|
||||
'create-archive', '--path', archive_path, '--paths',
|
||||
|
||||
Reference in new issue
Block a user