mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 12:29:55 +00:00
Block tests from opening sockets (#55516)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user