From 0aaa90f54a6a8ac38ce74bae126eef0d8a8e6fcf Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 4 Jan 2023 16:42:50 +0000 Subject: [PATCH] test(tokens-repo): shrink invalid new device test --- tests/test_graphql/test_api_devices.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/test_graphql/test_api_devices.py b/tests/test_graphql/test_api_devices.py index a88493c..37d81af 100644 --- a/tests/test_graphql/test_api_devices.py +++ b/tests/test_graphql/test_api_devices.py @@ -330,19 +330,9 @@ def test_graphql_get_and_authorize_new_device(client, authorized_client, tokens_ def test_graphql_authorize_new_device_with_invalid_key( client, authorized_client, tokens_file ): - response = client.post( - "/graphql", - json={ - "query": AUTHORIZE_WITH_NEW_DEVICE_KEY_MUTATION, - "variables": { - "input": { - "key": "invalid_token", - "deviceName": "test_token", - } - }, - }, - ) + response = graphql_try_auth_new_device(client, "invalid_token", "new_device") assert_errorcode(response, "authorizeWithNewDeviceApiKey", 404) + assert_original(authorized_client)