Block tests from opening sockets (#55516)
This commit is contained in:
parent
a8b7c521f6
commit
f6682ba99d
10 changed files with 135 additions and 5 deletions
|
@ -1,6 +1,8 @@
|
|||
"""The tests for the image_processing component."""
|
||||
from unittest.mock import PropertyMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
import homeassistant.components.http as http
|
||||
import homeassistant.components.image_processing as ip
|
||||
from homeassistant.const import ATTR_ENTITY_PICTURE
|
||||
|
@ -11,6 +13,12 @@ from tests.common import assert_setup_component, async_capture_events
|
|||
from tests.components.image_processing import common
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def aiohttp_unused_port(loop, aiohttp_unused_port, socket_enabled):
|
||||
"""Return aiohttp_unused_port and allow opening sockets."""
|
||||
return aiohttp_unused_port
|
||||
|
||||
|
||||
def get_url(hass):
|
||||
"""Return camera url."""
|
||||
state = hass.states.get("camera.demo_camera")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue