tests, reset_password first steps

This commit is contained in:
2026-09-15 17:04:24 +03:00
parent 2ac6f898a7
commit 3fb0f8c76d
7 changed files with 308 additions and 15 deletions
+7 -5
View File
@@ -34,16 +34,18 @@ class TestPermissions:
assert exc_info.value.response.status_code != 403
assert exc_info.value.response.status_code == 401
@pytest.mark.parametrize("test_user_fixture", [([], [])], indirect=True)
async def test_get_logout_positive(self,test_user_fixture, target_url:str)->None:
async def test_get_logout_positive(self, test_user_fixture, target_url: str) -> None:
session=test_user_fixture[0]
with allure.step("get_root"), pytest.raises(HTTPStatusError) as exc_info:
session = test_user_fixture[0]
with allure.step("get_root"):
response = await session.get(f"{target_url}/protected/logout")
response.raise_for_status()
assert exc_info.value.response.status_code != 403
assert exc_info.value.response.status_code != 401
assert response.status_code == 200
class TestRedis: