feat: block pay invoice (#2727)

This commit is contained in:
Vlad Stan
2024-10-01 17:17:42 +03:00
committed by GitHub
parent e85a78854e
commit a58deff70c
7 changed files with 61 additions and 14 deletions
-9
View File
@@ -450,7 +450,6 @@ async def test_alan_change_password_auth_threshold_expired(
access_token = response.json().get("access_token")
assert access_token is not None
initial_update_threshold = settings.auth_credetials_update_threshold
settings.auth_credetials_update_threshold = 1
time.sleep(1.1)
response = await http_client.put(
@@ -465,8 +464,6 @@ async def test_alan_change_password_auth_threshold_expired(
},
)
settings.auth_credetials_update_threshold = initial_update_threshold
assert response.status_code == 403, "Treshold expired."
assert (
response.json().get("detail") == "You can only update your credentials"
@@ -837,7 +834,6 @@ async def test_alan_change_pubkey_auth_threshold_expired(
access_token = response.json().get("access_token")
assert access_token is not None
initial_update_threshold = settings.auth_credetials_update_threshold
settings.auth_credetials_update_threshold = 1
time.sleep(1.1)
response = await http_client.put(
@@ -849,8 +845,6 @@ async def test_alan_change_pubkey_auth_threshold_expired(
},
)
settings.auth_credetials_update_threshold = initial_update_threshold
assert response.status_code == 403, "Treshold expired."
assert (
response.json().get("detail") == "You can only update your credentials"
@@ -1001,7 +995,6 @@ async def test_reset_password_auth_threshold_expired(
reset_key = await api_users_reset_password(user_alan.id)
assert reset_key, "Reset key created."
initial_update_threshold = settings.auth_credetials_update_threshold
settings.auth_credetials_update_threshold = 1
time.sleep(1.1)
response = await http_client.put(
@@ -1013,8 +1006,6 @@ async def test_reset_password_auth_threshold_expired(
},
)
settings.auth_credetials_update_threshold = initial_update_threshold
assert response.status_code == 403, "Treshold expired."
assert (
response.json().get("detail") == "You can only update your credentials"