Example #1
0
def test_disable_component_info(hass, mock_get_uuid):
    """Test if new entity is created if new version is available."""
    with patch('homeassistant.components.updater.platform.system',
               Mock(return_value="junk")):
        res = yield from updater.get_system_info(hass, False)
        assert 'components' not in res, 'Updater failed, components generate'
Example #2
0
def test_disable_component_info(hass, mock_get_uuid):
    """Test if new entity is created if new version is available."""
    with patch('homeassistant.components.updater.platform.system',
               Mock(return_value="junk")):
        res = yield from updater.get_system_info(hass, False)
        assert 'components' not in res, 'Updater failed, components generate'