Rewritten Config class test

This commit is contained in:
Veronica K. B. Olsen
2020-12-07 23:34:12 +01:00
parent a4ee1e112c
commit 9772c85ece
5 changed files with 559 additions and 205 deletions
+3
View File
@@ -73,6 +73,9 @@ def fncDir(tmpDir):
def tmpConf(tmpDir):
"""Create a temporary novelWriter configuration object.
"""
confFile = os.path.join(tmpDir, "novelwriter.conf")
if os.path.isfile(confFile):
os.unlink(confFile)
theConf = Config()
theConf.initConfig(tmpDir, tmpDir)
theConf.setLastPath("")