mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
no more need to mock dependency
This commit is contained in:
@@ -12,8 +12,6 @@ from tests.components.auth import async_setup_auth
|
|||||||
|
|
||||||
async def test_bad_posting(aioclient_mock, hass, aiohttp_client):
|
async def test_bad_posting(aioclient_mock, hass, aiohttp_client):
|
||||||
"""Test that posting to wrong api endpoint fails."""
|
"""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', {
|
await async_setup_component(hass, 'camera', {
|
||||||
'camera': {
|
'camera': {
|
||||||
'platform': 'push',
|
'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):
|
async def test_posting_url(aioclient_mock, hass, aiohttp_client):
|
||||||
"""Test that posting to api endpoint works."""
|
"""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', {
|
await async_setup_component(hass, 'camera', {
|
||||||
'camera': {
|
'camera': {
|
||||||
'platform': 'push',
|
'platform': 'push',
|
||||||
|
Reference in New Issue
Block a user