def test_room_calendar_ids_cleanup_when_all_ids_are_valid(self,
                                                           mock_get_json):
     mock_get_json.return_value = get_events_mock_data()
     CommonTestCases.admin_token_assert_equal(
         self,
         room_calendar_ids_cleanup_query,
         room_calendar_ids_cleanup_response_when_all_ids_are_valid
     )
示例#2
0
 def test_room_schedule(self, mock_get_json):
     """
     This function tests the return types of the data received
     from RoomSchedule query
      - if it is a dictionary
      - if data is obtained
     """
     mock_get_json.return_value = get_events_mock_data()
     CommonTestCases.admin_token_assert_equal(self, room_schedule_query,
                                              room_schedule_query_response)
示例#3
0
 def test_syncs_after_notification_is_recieved(self, mocked_method):
     mocked_method.return_value = get_events_mock_data()
     response = self.client.execute(notification_mutation)
     self.assertEqual(notification_response, response)
示例#4
0
 def test_get_occupants_with_invalid_calendar_id(self, mock_get_json):
     mock_get_json.return_value = get_events_mock_data()
     CommonTestCases.admin_token_assert_in(
         self, room_occupants_invalid_calendar_id_query,
         "CalendarId given not assigned to any room on converge")
示例#5
0
 def test_sync_all_events(self, mocked_method):
     mocked_method.return_value = get_events_mock_data()
     response = self.client.execute(sync_data_mutation)
     self.assertEqual(sync_data_response, response)