mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
The file declared itself pure but imported the module through the package, and the package __init__ unconditionally imports homeassistant. Without homeassistant installed pytest did not skip the file — it stopped collecting the whole tests_backend directory, taking the previously working pure suite down with it. test_validation.py had already established the by-path pattern; virtual_lights.py imports nothing beyond the standard library, so it loads cleanly. The async tests also dropped their pytest-asyncio dependency in favour of asyncio.run: the offline environment does not carry the plugin, and without it the two tests failed as unsupported async defs. The offline gate has to be green, or nobody runs it. Verified in both environments: pytest+voluptuous only — 129 passed where collection previously stopped dead; with pytest-asyncio as in CI — 129 passed. Issue: #135 User-Visible: no