From 1d6275b75bbfc88d5a08a9136986db9ab939f803 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 28 Dec 2022 15:48:40 +0000 Subject: [PATCH] test(tokens-repo): delete standalone get new device test At rest api level, we can only check the existence of new device token by using it, and this test already exists. --- tests/test_rest_endpoints/test_auth.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/test_rest_endpoints/test_auth.py b/tests/test_rest_endpoints/test_auth.py index 44b543d..3d6b256 100644 --- a/tests/test_rest_endpoints/test_auth.py +++ b/tests/test_rest_endpoints/test_auth.py @@ -113,14 +113,6 @@ def test_get_new_device_auth_token_unauthorized(client, tokens_file): assert_original(tokens_file) -def test_get_new_device_auth_token(authorized_client, tokens_file): - response = authorized_client.post("/auth/new_device") - assert response.status_code == 200 - assert "token" in response.json() - token = Mnemonic(language="english").to_entropy(response.json()["token"]).hex() - assert read_json(tokens_file)["new_device"]["token"] == token - - def test_get_and_delete_new_device_token(authorized_client, tokens_file): response = authorized_client.post("/auth/new_device") assert response.status_code == 200