tests/components/google/conftest.py
def mock_insert_event(
    aioclient_mock: AiohttpClientMocker,
) -> Callable[[...], None]:
    """Fixture for capturing event creation."""

    def _expect_result(calendar_id: str = CALENDAR_ID) -> None:
        aioclient_mock.post(
            f"{API_BASE_URL}/calendars/{calendar_id}/events",
        )
        return

    return _expect_result
Fixture for capturing event creation.
Fixture for capturing event creation.
Fixture for capturing event creation .
def mock_insert_event(
    aioclient_mock: AiohttpClientMocker,
) -> Callable[[...], None]:
    def _expect_result(calendar_id: str = CALENDAR_ID) -> None:
        aioclient_mock.post(
            f"{API_BASE_URL}/calendars/{calendar_id}/events",
        )
        return
    return _expect_result
def mock_insert_event ( aioclient_mock : AiohttpClientMocker , ) -> Callable [ [ ... ] , None ] : def _expect_result ( calendar_id : str = CALENDAR_ID ) -> None : aioclient_mock . post ( f"{API_BASE_URL}/calendars/{calendar_id}/events" , ) return return _expect_result
Fixture for capturing event creation.
Fixture for capturing event creation .
"""Fixture for capturing event creation."""
aioclient_mock
AiohttpClientMocker