mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-05 11:03:12 +00:00
test(backup): ensure we actually call backup fixture and related resets
This commit is contained in:
parent
85c90105ea
commit
69a05de3d7
|
@ -1,5 +1,6 @@
|
||||||
from os import path
|
from os import path
|
||||||
from tests.test_graphql.test_backup import dummy_service, backups, raw_dummy_service
|
from tests.test_graphql.test_backup import backups
|
||||||
|
from tests.test_graphql.test_backup import raw_dummy_service, dummy_service
|
||||||
from tests.common import generate_backup_query
|
from tests.common import generate_backup_query
|
||||||
|
|
||||||
|
|
||||||
|
@ -301,7 +302,7 @@ def test_dummy_service_convertible_to_gql(dummy_service):
|
||||||
assert gql_service is not None
|
assert gql_service is not None
|
||||||
|
|
||||||
|
|
||||||
def test_snapshots_empty(authorized_client, dummy_service):
|
def test_snapshots_empty(authorized_client, dummy_service, backups):
|
||||||
snaps = api_snapshots(authorized_client)
|
snaps = api_snapshots(authorized_client)
|
||||||
assert snaps == []
|
assert snaps == []
|
||||||
|
|
||||||
|
@ -370,7 +371,6 @@ def test_remove(authorized_client, generic_userdata, backups):
|
||||||
assert len(configuration["encryptionKey"]) > 1
|
assert len(configuration["encryptionKey"]) > 1
|
||||||
assert configuration["isInitialized"] is False
|
assert configuration["isInitialized"] is False
|
||||||
|
|
||||||
|
|
||||||
def test_autobackup_quotas_nonzero(authorized_client, backups):
|
def test_autobackup_quotas_nonzero(authorized_client, backups):
|
||||||
quotas = _AutobackupQuotas(
|
quotas = _AutobackupQuotas(
|
||||||
last=3,
|
last=3,
|
||||||
|
|
Loading…
Reference in a new issue