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.redis/connection-pool
parent
07fe2f8a55
commit
1d6275b75b
|
@ -113,14 +113,6 @@ def test_get_new_device_auth_token_unauthorized(client, tokens_file):
|
||||||
assert_original(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):
|
def test_get_and_delete_new_device_token(authorized_client, tokens_file):
|
||||||
response = authorized_client.post("/auth/new_device")
|
response = authorized_client.post("/auth/new_device")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
Loading…
Reference in New Issue