no more need to mock dependency

This commit is contained in:
Diogo Gomes
2018-06-27 20:23:24 +01:00
parent 1196a0ae32
commit 7f7c326fb7

View File

@@ -12,8 +12,6 @@ from tests.components.auth import async_setup_auth
async def test_bad_posting(aioclient_mock, hass, aiohttp_client):
"""Test that posting to wrong api endpoint fails."""
with patch('homeassistant.components.camera.push.PushCamera._blank_image',
return_value=io.BytesIO(b'fakeinit')):
await async_setup_component(hass, 'camera', {
'camera': {
'platform': 'push',
@@ -35,8 +33,6 @@ async def test_bad_posting(aioclient_mock, hass, aiohttp_client):
async def test_posting_url(aioclient_mock, hass, aiohttp_client):
"""Test that posting to api endpoint works."""
with patch('homeassistant.components.camera.push.PushCamera._blank_image',
return_value=io.BytesIO(b'fakeinit')):
await async_setup_component(hass, 'camera', {
'camera': {
'platform': 'push',