From ecac447f59a2a89efee84d0c02860dc185fc52cc Mon Sep 17 00:00:00 2001 From: David Ormrod Morley Date: Mon, 15 Jun 2026 10:11:45 +0200 Subject: [PATCH] Add unit test files to path during testrun --- unit_tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unit_tests/conftest.py b/unit_tests/conftest.py index f9cb3634..f366461d 100644 --- a/unit_tests/conftest.py +++ b/unit_tests/conftest.py @@ -1,6 +1,12 @@ import pytest from unittest.mock import patch, MagicMock from pathlib import Path +import sys + + +UNIT_TESTS_DIR = Path(__file__).resolve().parent +if str(UNIT_TESTS_DIR) not in sys.path: + sys.path.insert(0, str(UNIT_TESTS_DIR)) @pytest.fixture(autouse=True)