1from pathlib import Path
2import sys
3
4import pytest
5
6
7_SCRIPT_DIR = Path(__file__).absolute().parent
8sys.path.insert(0, str(_SCRIPT_DIR / ".." / ".." / "genllheaders"))
9
10
11@pytest.fixture()
12def data():
13    """Pytest fixture to load test data files"""
14    return _SCRIPT_DIR / "data"
15
16
17@pytest.fixture()
18def hal_path(data):
19    """Pytest fixture to load test HAL files"""
20    return data / "stm32cube"
21