Fix test file comparison filters
This commit is contained in:
@@ -112,7 +112,7 @@ def testBaseConfig_InitLoadSave(monkeypatch, fncPath, tstPaths):
|
|||||||
|
|
||||||
# Check that we have a default file
|
# Check that we have a default file
|
||||||
copyfile(confFile, testFile)
|
copyfile(confFile, testFile)
|
||||||
ignore = ("timestamp", "lastnotes", "guilang", "lastpath")
|
ignore = ("timestamp", "lastnotes", "localisation", "lastpath")
|
||||||
assert cmpFiles(testFile, compFile, ignoreStart=ignore)
|
assert cmpFiles(testFile, compFile, ignoreStart=ignore)
|
||||||
tstConf.errorText() # This clears the error cache
|
tstConf.errorText() # This clears the error cache
|
||||||
|
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ def testDlgPreferences_Main(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
|
|||||||
compFile = tstPaths.refDir / "guiPreferences_novelwriter.conf"
|
compFile = tstPaths.refDir / "guiPreferences_novelwriter.conf"
|
||||||
copyfile(projFile, testFile)
|
copyfile(projFile, testFile)
|
||||||
ignTuple = (
|
ignTuple = (
|
||||||
"timestamp", "guifont", "lastnotes", "guilang", "geometry",
|
"timestamp", "font", "lastnotes", "localisation", "geometry",
|
||||||
"preferences", "projcols", "mainpane", "docpane", "viewpane",
|
"preferences", "projcols", "mainpane", "docpane", "viewpane",
|
||||||
"outlinepane", "textfont", "textsize", "lastpath", "backuppath"
|
"outlinepane", "textfont", "textsize", "lastpath", "backuppath"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user