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

Method test_verified_user

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

Source from the content-addressed store, hash-verified

410 assert response.status_code == status.HTTP_403_FORBIDDEN
411
412 async def test_verified_user(
413 self,
414 test_app_client: tuple[httpx.AsyncClient, bool],
415 verified_user: UserModel,
416 ):
417 client, _ = test_app_client
418 response = await client.get(
419 "/d35d213e-f3d8-4f08-954a-7e0d1bea286f",
420 headers={"Authorization": f"Bearer {verified_user.id}"},
421 )
422 assert response.status_code == status.HTTP_403_FORBIDDEN
423
424 async def test_not_existing_user_unverified_superuser(
425 self,

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected