diff --git a/tests/test_graphql/test_api.py b/tests/test_graphql/test_api.py index 16c7c4d..695dd8e 100644 --- a/tests/test_graphql/test_api.py +++ b/tests/test_graphql/test_api.py @@ -7,21 +7,6 @@ from tests.test_graphql.test_api_devices import API_DEVICES_QUERY from tests.test_graphql.test_api_recovery import API_RECOVERY_QUERY from tests.test_graphql.test_api_version import API_VERSION_QUERY -TOKENS_FILE_CONTETS = { - "tokens": [ - { - "token": "TEST_TOKEN", - "name": "test_token", - "date": "2022-01-14 08:31:10.789314", - }, - { - "token": "TEST_TOKEN2", - "name": "test_token2", - "date": "2022-01-14 08:31:10.789314", - }, - ] -} - def test_graphql_get_entire_api_data(authorized_client, tokens_file): response = authorized_client.post( diff --git a/tests/test_graphql/test_api_recovery.py b/tests/test_graphql/test_api_recovery.py index c5e229e..2cb824f 100644 --- a/tests/test_graphql/test_api_recovery.py +++ b/tests/test_graphql/test_api_recovery.py @@ -5,21 +5,6 @@ import datetime from tests.common import generate_api_query, mnemonic_to_hex, read_json, write_json -TOKENS_FILE_CONTETS = { - "tokens": [ - { - "token": "TEST_TOKEN", - "name": "test_token", - "date": "2022-01-14 08:31:10.789314", - }, - { - "token": "TEST_TOKEN2", - "name": "test_token2", - "date": "2022-01-14 08:31:10.789314", - }, - ] -} - API_RECOVERY_QUERY = """ recoveryKey { exists diff --git a/tests/test_rest_endpoints/test_auth.py b/tests/test_rest_endpoints/test_auth.py index 40960f0..1872203 100644 --- a/tests/test_rest_endpoints/test_auth.py +++ b/tests/test_rest_endpoints/test_auth.py @@ -4,21 +4,7 @@ import datetime import pytest - -TOKENS_FILE_CONTENTS = { - "tokens": [ - { - "token": "TEST_TOKEN", - "name": "test_token", - "date": datetime.datetime(2022, 1, 14, 8, 31, 10, 789314), - }, - { - "token": "TEST_TOKEN2", - "name": "test_token2", - "date": datetime.datetime(2022, 1, 14, 8, 31, 10, 789314), - }, - ] -} +from tests.conftest import TOKENS_FILE_CONTENTS DATE_FORMATS = [ "%Y-%m-%dT%H:%M:%S.%fZ",