(
client: TestClient, normal_user_token_headers: dict[str, str]
)
| 25 | |
| 26 | |
| 27 | def 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 | |
| 38 | def test_get_existing_user_current_user(client: TestClient, db: Session) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected