From 50087e1388d6993fb318c504dec9ef317cb21b45 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Wed, 27 Jun 2018 00:36:10 +0100 Subject: [PATCH] hound --- tests/components/camera/test_push.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/camera/test_push.py b/tests/components/camera/test_push.py index 0d00424ba10..c0ab2d85784 100644 --- a/tests/components/camera/test_push.py +++ b/tests/components/camera/test_push.py @@ -9,6 +9,7 @@ from homeassistant.setup import async_setup_component from homeassistant.util import dt as dt_util from tests.components.auth import async_setup_auth + @mock.patch("PIL.Image.new") async def test_bad_posting(aioclient_mock, hass, aiohttp_client): """Test that posting to wrong api endpoint fails.""" @@ -30,6 +31,7 @@ async def test_bad_posting(aioclient_mock, hass, aiohttp_client): resp = await client.post('/api/camera_push/camera.wrong', data=files) assert resp.status == 400 + @mock.patch("PIL.Image.new") async def test_posting_url(aioclient_mock, hass, aiohttp_client): """Test that posting to api endpoint works."""