A good start on project tests. needed some tewaking of the project class.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user