def test_response_event(self): """ This function tests for type of response of the response to see if its a googleapi object RoomSchedule function """ calendarId = '*****@*****.**' # noqa: E501 response = RoomSchedules.get_room_schedules(self, calendarId, 7) assert type(response) is list self.assertNotEquals(response, [])
def resolve_room_schedule(self, info, calendar_id, days): query = Room.get_query(info) Query.check_valid_calendar_id(self, query, calendar_id) room_schedule = RoomSchedules.get_room_schedules( self, calendar_id, days) return Calendar( events=room_schedule[1] )
def room_occupants_room_schedule(self, info, calender_id, days): query = Room.get_query(info) Query.check_valid_calendar_id(self, query, calender_id) resource = RoomSchedules.get_room_schedules(self, calender_id, days) return resource