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:
Sunil Mohan Adapa authored and James Valleroy committed 2019-09-07 12:52:46 -04:00
1 parent 6c14e34875
commit 5b01689a92
3 files changed
+20 -20

No files matched your search

+2 -2
View File
@@ -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',