def setup_mocks_for_process_lights(self):
Set up all mocks for process_lights tests.
self.mock_bridge = MagicMock()
self.mock_api = MagicMock()
self.mock_api.get.return_value = {}
self.mock_bridge.get_api.return_value = self.mock_api
self.mock_bridge_type = MagicMock()
hue_light.setup_data(self.hass)
def setup_mocks_for_process_groups(self):
Set up all mocks for process_groups tests.
self.mock_bridge = MagicMock()
self.mock_bridge.get_group.return_value = {
After Change
self.mock_groups = []
self.mock_add_devices = MagicMock()
def setup_mocks_for_process_lights(self):
Set up all mocks for process_lights tests.
self.mock_bridge = self.create_mock_bridge("host")
self.mock_api = MagicMock()
self.mock_api.get.return_value = {}
self.mock_bridge.get_api.return_value = self.mock_api
self.mock_bridge_type = MagicMock()