mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 07:54:43 +01:00
Consolidate all platforms that have no tests (#22096)
* Consolidate * Fix tests * Update imports * Fix import * Use importlib because integration and package share name * Fix more tests * Update .coveragerc and CODEOWNERS
This commit is contained in:
@@ -126,7 +126,7 @@ class TestImageProcessingAlpr:
|
||||
},
|
||||
}
|
||||
|
||||
with patch('homeassistant.components.image_processing.demo.'
|
||||
with patch('homeassistant.components.demo.image_processing.'
|
||||
'DemoImageProcessingAlpr.should_poll',
|
||||
new_callable=PropertyMock(return_value=False)):
|
||||
setup_component(self.hass, ip.DOMAIN, config)
|
||||
@@ -188,7 +188,7 @@ class TestImageProcessingAlpr:
|
||||
assert event_data[0]['confidence'] == 98.3
|
||||
assert event_data[0]['entity_id'] == 'image_processing.demo_alpr'
|
||||
|
||||
@patch('homeassistant.components.image_processing.demo.'
|
||||
@patch('homeassistant.components.demo.image_processing.'
|
||||
'DemoImageProcessingAlpr.confidence',
|
||||
new_callable=PropertyMock(return_value=95))
|
||||
def test_alpr_event_single_call_confidence(self, confidence_mock,
|
||||
@@ -228,7 +228,7 @@ class TestImageProcessingFace:
|
||||
},
|
||||
}
|
||||
|
||||
with patch('homeassistant.components.image_processing.demo.'
|
||||
with patch('homeassistant.components.demo.image_processing.'
|
||||
'DemoImageProcessingFace.should_poll',
|
||||
new_callable=PropertyMock(return_value=False)):
|
||||
setup_component(self.hass, ip.DOMAIN, config)
|
||||
@@ -273,7 +273,7 @@ class TestImageProcessingFace:
|
||||
assert event_data[0]['entity_id'] == \
|
||||
'image_processing.demo_face'
|
||||
|
||||
@patch('homeassistant.components.image_processing.demo.'
|
||||
@patch('homeassistant.components.demo.image_processing.'
|
||||
'DemoImageProcessingFace.confidence',
|
||||
new_callable=PropertyMock(return_value=None))
|
||||
def test_face_event_call_no_confidence(self, mock_config, aioclient_mock):
|
||||
|
||||
Reference in New Issue
Block a user