Merge pull request #381 from vkbo/test_import_path

Added project root path to sys.path for test suite
This commit is contained in:
Veronica K. Berglyd Olsen
2020-08-04 14:08:50 +02:00
committed by GitHub
+3 -1
View File
@@ -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__)