Added test for insert menu functionality

This commit is contained in:
Veronica K. B. Olsen
2020-08-16 11:48:46 +02:00
parent 8513e6a6c2
commit 6af156af39
3 changed files with 93 additions and 6 deletions
+12
View File
@@ -54,6 +54,18 @@ def nwTempSample(nwTemp):
mkdir(sampleDir)
return sampleDir
@pytest.fixture(scope="function")
def nwFuncTemp(nwTemp):
funcDir = path.join(nwTemp, "ftemp")
if path.isdir(funcDir):
shutil.rmtree(funcDir)
if not path.isdir(funcDir):
mkdir(funcDir)
yield funcDir
if path.isdir(funcDir):
shutil.rmtree(funcDir)
return
@pytest.fixture(scope="session")
def nwRef():
testDir = path.dirname(__file__)