MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / test_get_users_superuser_me

Function test_get_users_superuser_me

backend/tests/users/test_api.py:16–24  ·  view source on GitHub ↗
(
    client: TestClient, superuser_token_headers: dict[str, str]
)

Source from the content-addressed store, hash-verified

14
15
16def test_get_users_superuser_me(
17 client: TestClient, superuser_token_headers: dict[str, str]
18) -> None:
19 r = client.get(f"{settings.API_V1_STR}/users/me", headers=superuser_token_headers)
20 current_user = r.json()
21 assert current_user
22 assert current_user["is_active"] is True
23 assert current_user["is_superuser"]
24 assert current_user["email"] == settings.FIRST_SUPERUSER
25
26
27def test_get_users_normal_user_me(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected