tests/components/google/conftest.py
def mock_calendar_get(
    aioclient_mock: AiohttpClientMocker,
) -> Callable[[...], None]:
    """Fixture for returning a calendar get response."""

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

    return _result
Fixture for returning a calendar get response.
Fixture for returning a calendar get response.
Fixture for returning a calendar get response .
def mock_calendar_get(
    aioclient_mock: AiohttpClientMocker,
) -> Callable[[...], None]:
    def _result(
        calendar_id: str, response: dict[str, Any], exc: ClientError | None = None
    ) -> None:
        aioclient_mock.get(
            f"{API_BASE_URL}/calendars/{calendar_id}",
            json=response,
            exc=exc,
        )
        return
    return _result
def mock_calendar_get ( aioclient_mock : AiohttpClientMocker , ) -> Callable [ [ ... ] , None ] : def _result ( calendar_id : str , response : dict [ str , Any ] , exc : ClientError | None = None ) -> None : aioclient_mock . get ( f"{API_BASE_URL}/calendars/{calendar_id}" , json = response , exc = exc , ) return return _result
Fixture for returning a calendar get response.
Fixture for returning a calendar get response .
"""Fixture for returning a calendar get response."""
aioclient_mock
AiohttpClientMocker