aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-29 19:22:59 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-29 19:22:59 +0200
commit2290975f9e867938116bf1e4d21f83eb073eb906 (patch)
treefa69b3d3c44f5330521a63890ddc3ff81785e319
parent0bc8089a9f610433531de5233eec0c07fd3ddb92 (diff)
downloadhaketilo-hydrilla-2290975f9e867938116bf1e4d21f83eb073eb906.tar.gz
haketilo-hydrilla-2290975f9e867938116bf1e4d21f83eb073eb906.zip
make pytest try to load the tested modules from sources if they are present
-rw-r--r--conftest.py11
1 files changed, 11 insertions, 0 deletions
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 <koszko@koszko.org>
+#
+# 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'))