def test_ignoreChannels(self): chart_key = self.create_test_chart() event = self.client.events.create(chart_key) self.client.events.update_channels(event.key, { 'channelKey1': Channel(name='channel 1', color='#00FF00', index=1) }) self.client.events.assign_objects_to_channels(event.key, {"channelKey1": ["B-5"]}) result = self.client.events.change_best_available_object_status( event.key, 1, "myStatus", ignore_channels=True) assert_that(result.objects).contains_exactly("B-5")
def test_channelKeys(self): chart_key = self.create_test_chart() event = self.client.events.create(chart_key) self.client.events.update_channels(event.key, { 'channelKey1': Channel(name='channel 1', color='#00FF00', index=1) }) self.client.events.assign_objects_to_channels(event.key, { "channelKey1": ["A-1", "A-2"] }) self.client.events.book(event.key, ["A-1"], channel_keys=["channelKey1"]) object_info = self.client.events.retrieve_object_info(event.key, "A-1") assert_that(object_info.status).is_equal_to(EventObjectInfo.BOOKED)
def test_ignoreChannels(self): chart_key = self.create_test_chart() event = self.client.events.create(chart_key) hold_token = self.client.hold_tokens.create() self.client.events.update_channels(event.key, { 'channelKey1': Channel(name='channel 1', color='#00FF00', index=1) }) self.client.events.assign_objects_to_channels(event.key, { "channelKey1": ["A-1", "A-2"] }) self.client.events.hold(event.key, ["A-1"], hold_token.hold_token, ignore_channels=True) object_info = self.client.events.retrieve_object_info(event.key, "A-1") assert_that(object_info.status).is_equal_to(EventObjectInfo.HELD)