MCPcopy Create free account
hub / github.com/fastapi-users/fastapi-users / test_verified_user

Method test_verified_user

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

Source from the content-addressed store, hash-verified

877 assert response.status_code == status.HTTP_403_FORBIDDEN
878
879 async def test_verified_user(
880 self,
881 test_app_client: tuple[httpx.AsyncClient, bool],
882 verified_user: UserModel,
883 ):
884 client, _ = test_app_client
885 response = await client.delete(
886 "/d35d213e-f3d8-4f08-954a-7e0d1bea286f",
887 headers={"Authorization": f"Bearer {verified_user.id}"},
888 )
889 assert response.status_code == status.HTTP_403_FORBIDDEN
890
891 async def test_not_existing_user_unverified_superuser(
892 self,

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected