1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Fixed component_tests config (#1608)

This commit is contained in:
Massimiliano Ravelli
2021-03-12 23:58:43 +01:00
committed by GitHub
parent cd1353ae54
commit 28a72fa56b
3 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,13 @@
"""Fixtures for component tests."""
import sys
from pathlib import Path
# Add package root to python path
here = Path(__file__).parent
package_root = here.parent.parent
sys.path.insert(0, package_root.as_posix())
import pytest
from esphome.core import CORE