diff --git a/tests/test_core_no_ha_smoke.py b/tests/test_core_no_ha_smoke.py new file mode 100644 index 0000000..69a3dce --- /dev/null +++ b/tests/test_core_no_ha_smoke.py @@ -0,0 +1,230 @@ +"""No-HA end-to-end smoke test (task 628473ad). + +The bundled core package (``custom_components.nestquest.core``) is +self-contained and Home-Assistant-free, but the parent integration +package ``custom_components.nestquest`` is NOT: its ``__init__.py`` +imports ``homeassistant``. A genuine "core runs with no Home +Assistant installed" proof therefore cannot live inside the suite +process — the suite's ``conftest.py`` installs mock ``homeassistant`` +modules globally before any test imports the integration, so an +in-process exercise can never distinguish "core never touched HA" +from "conftest already stubbed HA for us". + +This module runs the smoke test in a SUBPROCESS (``sys.executable -c +