From 92322d8fada298a4b2c1b7961fa0a63ce8315cea Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 14 Jun 2023 12:08:07 +0000 Subject: [PATCH] test(backups): test dummy service compliance --- tests/test_graphql/test_api_backup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_graphql/test_api_backup.py b/tests/test_graphql/test_api_backup.py index 40c81fa..2f11077 100644 --- a/tests/test_graphql/test_api_backup.py +++ b/tests/test_graphql/test_api_backup.py @@ -1,6 +1,8 @@ from tests.test_graphql.test_backup import dummy_service, backups, raw_dummy_service from tests.common import generate_backup_query + +from selfprivacy_api.graphql.common_types.service import service_to_graphql_service from selfprivacy_api.jobs import Jobs, JobStatus API_SNAPSHOTS_QUERY = """ @@ -62,6 +64,11 @@ def api_snapshots(authorized_client): return result +def test_dummy_service_convertible_to_gql(dummy_service): + gql_service = service_to_graphql_service(dummy_service) + assert gql_service is not None + + def test_snapshots_empty(authorized_client, dummy_service): snaps = api_snapshots(authorized_client) assert snaps == []