def setUp(self): """Set up mocks for testing.""" calendar_api_service.CalendarApiService.calendar_auth = mock.MagicMock( ) self.service = calendar_api_service.CalendarApiService() self.events_mock = mock.MagicMock() self.service.calendar_service.events = mock.MagicMock( return_value=self.events_mock)
def __init__(self): self.service = calendar_api_service.CalendarApiService() self.calendar_id = "primary"