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)
Ejemplo n.º 2
0
 def __init__(self):
     self.service = calendar_api_service.CalendarApiService()
     self.calendar_id = "primary"