mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
test(backup): init an in-memory backup class
This commit is contained in:
parent
a66a3f35fc
commit
e54224f15d
|
@ -14,12 +14,22 @@ def test_service(tmpdir):
|
|||
return DummyService(tmpdir)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def memory_backup():
|
||||
ProviderClass = providers.get_provider(BackupProvider.MEMORY)
|
||||
assert ProviderClass is not None
|
||||
memory_provider = ProviderClass(login="", key="")
|
||||
assert memory_provider is not None
|
||||
return memory_provider
|
||||
|
||||
|
||||
def test_select_backend():
|
||||
provider = providers.get_provider(BackupProvider.BACKBLAZE)
|
||||
assert provider is not None
|
||||
assert provider == Backblaze
|
||||
|
||||
|
||||
def test_backup(test_service):
|
||||
def test_backup_service(test_service, memory_backup):
|
||||
# temporarily incomplete
|
||||
assert test_service is not None
|
||||
assert memory_backup is not None
|
||||
|
|
Loading…
Reference in a new issue