def create_mock_response(
    events: list[dict[str, Any]], has_more: bool = False
) -> MagicMock:
    """Helper function to create a mock HTTP response."""
    mock_response = MagicMock()
    mock_response.json.return_value = {'events': events, 'has_more': has_more}
    return mock_response
Helper function to create a mock HTTP response.
tests/unit/test_nested_event_store.py