1
0
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:
Erik Montnemery
2021-10-06 02:46:09 +02:00
committed by GitHub
parent a8b7c521f6
commit f6682ba99d
10 changed files with 135 additions and 5 deletions

View File

@@ -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")