58257af28953eff376467f02789ef76884f88d0c,tests/components/image_processing/test_openalpr_cloud.py,TestOpenAlprCloud,test_openalpr_process_image,#TestOpenAlprCloud#Any#,159

Before Change


            text=load_fixture("alpr_cloud.json"), status=200
        )

        ip.scan(self.hass, entity_id="image_processing.test_local")
        self.hass.block_till_done()

        state = self.hass.states.get("image_processing.test_local")

After Change


            text=load_fixture("alpr_cloud.json"), status=200
        )

        with patch("homeassistant.components.camera.async_get_image",
                   return_value=mock_coro(
                       camera.Image("image/jpeg", b"image"))):
            ip.scan(self.hass, entity_id="image_processing.test_local")
            self.hass.block_till_done()

        state = self.hass.states.get("image_processing.test_local")

        assert len(aioclient_mock.mock_calls) == 1
        assert len(self.alpr_events) == 5
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 58257af28953eff376467f02789ef76884f88d0c
Time: 2018-05-03
Author: paulus@paulusschoutsen.nl
File Name: tests/components/image_processing/test_openalpr_cloud.py
Class Name: TestOpenAlprCloud
Method Name: test_openalpr_process_image


Project Name: home-assistant/home-assistant
Commit Name: 58257af28953eff376467f02789ef76884f88d0c
Time: 2018-05-03
Author: paulus@paulusschoutsen.nl
File Name: tests/components/image_processing/test_openalpr_cloud.py
Class Name: TestOpenAlprCloud
Method Name: test_openalpr_process_image_api_error


Project Name: home-assistant/home-assistant
Commit Name: 58257af28953eff376467f02789ef76884f88d0c
Time: 2018-05-03
Author: paulus@paulusschoutsen.nl
File Name: tests/components/image_processing/test_openalpr_cloud.py
Class Name: TestOpenAlprCloud
Method Name: test_openalpr_process_image_api_timeout