From 2290975f9e867938116bf1e4d21f83eb073eb906 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 29 Apr 2022 19:22:59 +0200 Subject: make pytest try to load the tested modules from sources if they are present --- conftest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 conftest.py diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..1aef80a --- /dev/null +++ b/conftest.py @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: CC0-1.0 + +# Copyright (C) 2022 Wojtek Kosior +# +# Available under the terms of Creative Commons Zero v1.0 Universal. + +import sys +from pathlib import Path + +here = Path(__file__).resolve().parent +sys.path.insert(0, str(here / 'src')) -- cgit v1.2.3