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.
This commit is contained in:
Houkime 2022-12-28 15:48:40 +00:00 committed by Inex Code
parent 07fe2f8a55
commit 1d6275b75b
1 changed files with 0 additions and 8 deletions

View File

@ -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