tests, reset_password first steps
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user