(
self,
test_app_client: tuple[httpx.AsyncClient, bool],
inactive_user: UserModel,
)
| 57 | assert response.status_code == status.HTTP_401_UNAUTHORIZED |
| 58 | |
| 59 | async def test_inactive_user( |
| 60 | self, |
| 61 | test_app_client: tuple[httpx.AsyncClient, bool], |
| 62 | inactive_user: UserModel, |
| 63 | ): |
| 64 | client, _ = test_app_client |
| 65 | response = await client.get( |
| 66 | "/me", headers={"Authorization": f"Bearer {inactive_user.id}"} |
| 67 | ) |
| 68 | assert response.status_code == status.HTTP_401_UNAUTHORIZED |
| 69 | |
| 70 | async def test_active_user( |
| 71 | self, |