diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-29 19:22:59 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-29 19:22:59 +0200 |
commit | 2290975f9e867938116bf1e4d21f83eb073eb906 (patch) | |
tree | fa69b3d3c44f5330521a63890ddc3ff81785e319 | |
parent | 0bc8089a9f610433531de5233eec0c07fd3ddb92 (diff) | |
download | haketilo-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.py | 11 |
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')) |