Added project root path to sys.path for test suite

This commit is contained in:
Veronica K. B. Olsen
2020-08-04 12:59:24 +02:00
parent c8ac0f0fc4
commit df61101ac3
+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__)