All developped and tests ok

This commit is contained in:
Jean-Marc Collin
2024-03-10 17:59:43 +00:00
parent 7fbdc2f0b8
commit ee432dd5cd
9 changed files with 428 additions and 133 deletions

View File

@@ -43,6 +43,7 @@ from pytest_socket import socket_allow_hosts
# ...
def pytest_runtest_setup():
"""setup tests"""
socket_allow_hosts(
allowed=["localhost", "127.0.0.1", "::1"], allow_unix_socket=True
)
@@ -50,6 +51,15 @@ def pytest_runtest_setup():
pytest_plugins = "pytest_homeassistant_custom_component" # pylint: disable=invalid-name
# Permet d'exclure certains test en mode d'ex
# sequential = pytest.mark.sequential
# This fixture allow to execute some tests first and not in //
# @pytest.fixture
# def order():
# return 1
#
# This fixture enables loading custom integrations in all tests.
# Remove to enable selective use of this fixture