fix rate_limit tests and add prod_mode to env
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user