fix rate_limit tests and add prod_mode to env

This commit is contained in:
2026-09-05 23:02:42 +03:00
parent 5cdcd342dc
commit ba5e90c516
4 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ class TestRedis:
@pytest.mark.parametrize("test_user_fixture", [([], [])], indirect=True)
async def test_get_logout_revoke_positive(self,test_user_fixture, target_url:str)->None:
async def test_logout_revokes_access_token(self,test_user_fixture, target_url:str)->None:
session=test_user_fixture[0]
@@ -80,5 +80,5 @@ class TestRedis:
with allure.step("verify token is revoked"), pytest.raises(HTTPStatusError) as exc_info:
response = await session.get(f"{target_url}/protected")
response.raise_for_status()
assert exc_info.value.response.status_code==429
assert exc_info.value.response.status_code==401