tests/components/google/conftest.py
def mock_calendars_list(
    aioclient_mock: AiohttpClientMocker,
) -> ApiResult:
    """Fixture to construct a fake calendar list API response."""

    def _result(response: dict[str, Any], exc: ClientError | None = None) -> None:
        aioclient_mock.get(
            f"{API_BASE_URL}/users/me/calendarList",
            json=response,
            exc=exc,
        )
        return

    return _result
Fixture to construct a fake calendar list API response.
Fixture to construct a fake calendar list API response.
Fixture to construct a fake calendar list API response .
def mock_calendars_list(
    aioclient_mock: AiohttpClientMocker,
) -> ApiResult:
    def _result(response: dict[str, Any], exc: ClientError | None = None) -> None:
        aioclient_mock.get(
            f"{API_BASE_URL}/users/me/calendarList",
            json=response,
            exc=exc,
        )
        return
    return _result
def mock_calendars_list ( aioclient_mock : AiohttpClientMocker , ) -> ApiResult : def _result ( response : dict [ str , Any ] , exc : ClientError | None = None ) -> None : aioclient_mock . get ( f"{API_BASE_URL}/users/me/calendarList" , json = response , exc = exc , ) return return _result
Fixture to construct a fake calendar list API response.
Fixture to construct a fake calendar list API response .
"""Fixture to construct a fake calendar list API response."""
aioclient_mock
AiohttpClientMocker