1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-24 22:22:22 +01:00

Improve coverage for various core modules (#10663)

This commit is contained in:
J. Nick Koston
2025-09-10 08:17:34 -05:00
committed by Jesse Hills
parent 2a4ab6a811
commit 4b3a997a8e
5 changed files with 701 additions and 0 deletions

View File

@@ -36,3 +36,10 @@ def fixture_path() -> Path:
Location of all fixture files.
"""
return here / "fixtures"
@pytest.fixture
def setup_core(tmp_path: Path) -> Path:
"""Set up CORE with test paths."""
CORE.config_path = str(tmp_path / "test.yaml")
return tmp_path