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

Function test_get_users_normal_user_me

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

Source from the content-addressed store, hash-verified

25
26
27def test_get_users_normal_user_me(
28 client: TestClient, normal_user_token_headers: dict[str, str]
29) -> None:
30 r = client.get(f"{settings.API_V1_STR}/users/me", headers=normal_user_token_headers)
31 current_user = r.json()
32 assert current_user
33 assert current_user["is_active"] is True
34 assert current_user["is_superuser"] is False
35 assert current_user["email"] == settings.EMAIL_TEST_USER
36
37
38def test_get_existing_user_current_user(client: TestClient, db: Session) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected