ci: fix HA-harness tests — asyncio_mode=auto (pytest.ini), per-module enable_custom_integrations fixture instead of a global autouse that broke sync tests

This commit is contained in:
Matysh
2026-07-06 00:30:29 +03:00
parent 42c24abcb4
commit 4f6bd68e5b
6 changed files with 38 additions and 11 deletions
+8
View File
@@ -1,4 +1,12 @@
"""HTTP upload endpoint tests (CI)."""
import pytest
@pytest.fixture(autouse=True)
def _enable_custom_integrations(enable_custom_integrations):
"""Allow loading custom_components in the test hass."""
yield
from aiohttp import FormData
from homeassistant.core import HomeAssistant
from pytest_homeassistant_custom_component.common import MockConfigEntry