mirror of
https://github.com/Matysh/houseplan-card
synced 2026-07-31 16:38:31 +00:00
12 lines
367 B
Python
12 lines
367 B
Python
"""Shared test config. HA-harness tests (test_ha_*.py) are skipped when
|
|
homeassistant is not installed: the local sandbox has Python 3.10, CI runs them
|
|
on 3.13 with pytest-homeassistant-custom-component."""
|
|
|
|
try:
|
|
import homeassistant # noqa: F401
|
|
HAS_HA = True
|
|
except ImportError:
|
|
HAS_HA = False
|
|
|
|
collect_ignore_glob = [] if HAS_HA else ["test_ha_*.py"]
|