mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 20:34:20 +02:00
Test HA core v2023.6 until v2024.2 (#942)
* Test HA core v2023.6 until v2024.2
* Use Python 3.12
* Add components.ffmpeg
* Revert "VS Code Dev Container (dev & test environment) (#605)"
This reverts commit 6283158ff7.
* Fix
* revert
* fi
* simplify
* Fix
* fixes
* fix
* rev
* Rename test
* fix
* fix all
* fix
* revert
This commit is contained in:
parent
e4e1aa7d37
commit
9eae1501d3
10 changed files with 104 additions and 101 deletions
|
|
@ -1,20 +0,0 @@
|
|||
"""Fixtures for testing."""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
# Tests in the dev enviromentment use the pytest_homeassistant_custom_component instead of
|
||||
# a cloned HA core repo for a simple and clean structure. To still test against a HA core
|
||||
# clone (e.g. the dev branch for which no pytest_homeassistant_custom_component exists
|
||||
# because HA does not publish dev snapshot packages), set the HA_CLONE env variable.
|
||||
if "HA_CLONE" in os.environ:
|
||||
# Rewire the testing package to the cloned test modules. See the test `Dockerfile`
|
||||
# for setup details.
|
||||
sys.modules["pytest_homeassistant_custom_component"] = __import__("tests")
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def auto_enable_custom_integrations(enable_custom_integrations):
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue