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:
parent
d33cad0b24
commit
f5076188ef
742 changed files with 1145 additions and 795 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue