def METHOD_NAME(test_client: flask.testing.FlaskClient):  # noqa: F811
    def verify_oauth2_token(*args):
        raise GoogleAuthError()
    with mock_server_settings({ServerSettingsVar.GOOGLE_OAUTH_CLIENT_ID: "ABC123"}):
        with mock.patch(
            "google.oauth2.id_token.verify_oauth2_token",
            side_effect=verify_oauth2_token,
        ):
            response = test_client.post("/login/google", json={"token": "abc"})
            assert response.status_code == HTTPStatus.UNAUTHORIZED