Python12 env rebuild

This commit is contained in:
Jean-Marc Collin
2024-02-25 17:18:14 +00:00
parent f7da58d841
commit 4478d65ad4
13 changed files with 81 additions and 42 deletions

View File

@@ -35,6 +35,19 @@ from .commons import (
FULL_CENTRAL_CONFIG_WITH_BOILER,
)
# https://github.com/miketheman/pytest-socket/pull/275
from pytest_socket import socket_allow_hosts
# ...
# ...
def pytest_runtest_setup():
socket_allow_hosts(
allowed=["localhost", "127.0.0.1", "::1"], allow_unix_socket=True
)
pytest_plugins = "pytest_homeassistant_custom_component" # pylint: disable=invalid-name