A good start on project tests. needed some tewaking of the project class.

This commit is contained in:
Veronica K. B. Olsen
2019-05-12 14:54:02 +02:00
parent 72a3e4f9dd
commit c39efc34fd
8 changed files with 263 additions and 11 deletions
+3 -9
View File
@@ -1,18 +1,10 @@
# -*- coding: utf-8 -*-
"""novelWriter Config Class Tester
novelWriter Config Class Tester
===================================
"""
import nw
import filecmp
from nwtools import cmpFiles
from nwtools import *
from os import path, unlink
from nw.config import Config
theConf = Config()
@@ -22,6 +14,8 @@ testRef = path.join(testDir,"reference")
tmpConf = path.join(testTemp,"novelwriter.conf")
refConf = path.join(testRef, "novelwriter.conf")
ensureDir(testTemp)
# Clean out old stuff
if path.isfile(tmpConf):
unlink(tmpConf)