From b04dfc6c4e25e14b37db3b4458c05054f951da0e Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 14 Jun 2023 10:06:01 +0000 Subject: [PATCH] fix(backups): register queries --- selfprivacy_api/graphql/schema.py | 1 + tests/common.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/selfprivacy_api/graphql/schema.py b/selfprivacy_api/graphql/schema.py index 9e40d7c..7107e20 100644 --- a/selfprivacy_api/graphql/schema.py +++ b/selfprivacy_api/graphql/schema.py @@ -21,6 +21,7 @@ from selfprivacy_api.graphql.queries.jobs import Job from selfprivacy_api.graphql.queries.services import Services from selfprivacy_api.graphql.queries.storage import Storage from selfprivacy_api.graphql.queries.system import System +from selfprivacy_api.graphql.queries.backup import Backup from selfprivacy_api.graphql.mutations.users_mutations import UserMutations from selfprivacy_api.graphql.queries.users import Users diff --git a/tests/common.py b/tests/common.py index 18e065c..e4a283d 100644 --- a/tests/common.py +++ b/tests/common.py @@ -24,5 +24,9 @@ def generate_users_query(query_array): return "query TestUsers {\n users {" + "\n".join(query_array) + "}\n}" +def generate_backup_query(query_array): + return "query TestBackup {\n backup {" + "\n".join(query_array) + "}\n}" + + def mnemonic_to_hex(mnemonic): return Mnemonic(language="english").to_entropy(mnemonic).hex()