diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-29 19:22:29 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-29 19:22:29 +0200 |
commit | 9dda3aa988a9482d6292a655f4846f7d4b450315 (patch) | |
tree | ab883db3c40158edf63e73a1022180e19ade7261 | |
parent | 86770602153d0b94679a4eb2c2449863f1a2a2c0 (diff) | |
download | hydrilla-builder-9dda3aa988a9482d6292a655f4846f7d4b450315.tar.gz hydrilla-builder-9dda3aa988a9482d6292a655f4846f7d4b450315.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')) |