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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 135 additions and 5 deletions

View file

@ -79,6 +79,12 @@ async def frontend_themes(hass):
)
@pytest.fixture
def aiohttp_client(loop, aiohttp_client, socket_enabled):
"""Return aiohttp_client and allow opening sockets."""
return aiohttp_client
@pytest.fixture
async def mock_http_client(hass, aiohttp_client, frontend):
"""Start the Home Assistant HTTP component."""