From df61101ac33a19da561b6b3b37bd26dd5b04b786 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Tue, 4 Aug 2020 12:59:24 +0200 Subject: [PATCH] Added project root path to sys.path for test suite --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index ae0e2861..c064c1d8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,9 +2,11 @@ """novelWriter Test Config """ -import pytest, shutil +import sys, pytest, shutil from os import path, mkdir +sys.path.insert(1, path.abspath(path.join(path.dirname(__file__), path.pardir))) + @pytest.fixture(scope="session") def nwTemp(): testDir = path.dirname(__file__)