Files
houseplan-card/tests_backend/conftest.py
T

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"]