1""" 2Copyright (c) 2022 Teslabs Engineering S.L. 3SPDX-License-Identifier: Apache 2.0 4""" 5 6from pathlib import Path 7import sys 8 9import pytest 10 11 12_SCRIPT_DIR = Path(__file__).absolute().parent 13sys.path.insert(0, str(_SCRIPT_DIR.parents[2])) 14 15 16@pytest.fixture() 17def data(): 18 """Pytest fixture to load test data files""" 19 return _SCRIPT_DIR / "data" 20 21 22@pytest.fixture() 23def hal_path(data): 24 """Pytest fixture to load test HAL files""" 25 return data / "hal" 26