From b6650b52c389d70f355bf0182224ea702562612f Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 3 Feb 2023 18:49:24 +0000 Subject: [PATCH] test(backup): init an in-memory backup class --- tests/test_graphql/test_backup.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_graphql/test_backup.py b/tests/test_graphql/test_backup.py index b63097c..abd05c2 100644 --- a/tests/test_graphql/test_backup.py +++ b/tests/test_graphql/test_backup.py @@ -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