mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 09:16:51 +00:00
formatting
This commit is contained in:
parent
50a82a065e
commit
250677f97d
|
@ -505,6 +505,7 @@ def test_generate_recovery_token_with_limited_uses(
|
|||
|
||||
assert read_json(tokens_file)["recovery_token"]["uses_left"] == 0
|
||||
|
||||
|
||||
def test_generate_recovery_token_with_negative_uses(
|
||||
authorized_client, client, tokens_file
|
||||
):
|
||||
|
@ -516,9 +517,8 @@ def test_generate_recovery_token_with_negative_uses(
|
|||
assert response.status_code == 400
|
||||
assert "recovery_token" not in read_json(tokens_file)
|
||||
|
||||
def test_generate_recovery_token_with_zero_uses(
|
||||
authorized_client, client, tokens_file
|
||||
):
|
||||
|
||||
def test_generate_recovery_token_with_zero_uses(authorized_client, client, tokens_file):
|
||||
# Generate token with limited uses
|
||||
response = authorized_client.post(
|
||||
"/auth/recovery_token",
|
||||
|
|
Loading…
Reference in a new issue