MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / test_inactive_user

Method test_inactive_user

tests/test_router_users.py:59–68  ·  view source on GitHub ↗
(
        self,
        test_app_client: tuple[httpx.AsyncClient, bool],
        inactive_user: UserModel,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected