Merge pull request #381 from vkbo/test_import_path
Added project root path to sys.path for test suite
This commit is contained in:
+3
-1
@@ -2,9 +2,11 @@
|
|||||||
"""novelWriter Test Config
|
"""novelWriter Test Config
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest, shutil
|
import sys, pytest, shutil
|
||||||
from os import path, mkdir
|
from os import path, mkdir
|
||||||
|
|
||||||
|
sys.path.insert(1, path.abspath(path.join(path.dirname(__file__), path.pardir)))
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def nwTemp():
|
def nwTemp():
|
||||||
testDir = path.dirname(__file__)
|
testDir = path.dirname(__file__)
|
||||||
|
|||||||
Reference in New Issue
Block a user