mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
test(tokens-repo): shrink invalid new device test
This commit is contained in:
parent
592d62f53f
commit
0aaa90f54a
|
@ -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(
|
def test_graphql_authorize_new_device_with_invalid_key(
|
||||||
client, authorized_client, tokens_file
|
client, authorized_client, tokens_file
|
||||||
):
|
):
|
||||||
response = client.post(
|
response = graphql_try_auth_new_device(client, "invalid_token", "new_device")
|
||||||
"/graphql",
|
|
||||||
json={
|
|
||||||
"query": AUTHORIZE_WITH_NEW_DEVICE_KEY_MUTATION,
|
|
||||||
"variables": {
|
|
||||||
"input": {
|
|
||||||
"key": "invalid_token",
|
|
||||||
"deviceName": "test_token",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
assert_errorcode(response, "authorizeWithNewDeviceApiKey", 404)
|
assert_errorcode(response, "authorizeWithNewDeviceApiKey", 404)
|
||||||
|
|
||||||
assert_original(authorized_client)
|
assert_original(authorized_client)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue