Addded a reference file for the json index too.
This commit is contained in:
+12
-10
@@ -235,16 +235,18 @@ def testMainWindows(qtbot, nwTempGUI, nwRef):
|
||||
qtbot.wait(stepDelay)
|
||||
|
||||
# Check the files
|
||||
projFile = path.join(nwTempGUI,"nwProject.nwx")
|
||||
assert cmpFiles(projFile, path.join(nwRef,"gui","1_nwProject.nwx"), [2])
|
||||
sceneFile = path.join(nwTempGUI,"data_0","2d20bbd7e394_main.nwd")
|
||||
assert cmpFiles(sceneFile, path.join(nwRef,"gui","1_2d20bbd7e394_main.nwd"))
|
||||
sceneFile = path.join(nwTempGUI,"data_2","fca346db6561_main.nwd")
|
||||
assert cmpFiles(sceneFile, path.join(nwRef,"gui","1_fca346db6561_main.nwd"))
|
||||
sceneFile = path.join(nwTempGUI,"data_3","1489056e0916_main.nwd")
|
||||
assert cmpFiles(sceneFile, path.join(nwRef,"gui","1_1489056e0916_main.nwd"))
|
||||
sceneFile = path.join(nwTempGUI,"data_7","688b6ef52555_main.nwd")
|
||||
assert cmpFiles(sceneFile, path.join(nwRef,"gui","1_688b6ef52555_main.nwd"))
|
||||
refFile = path.join(nwTempGUI,"nwProject.nwx")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_nwProject.nwx"), [2])
|
||||
refFile = path.join(nwTempGUI,"data_0","2d20bbd7e394_main.nwd")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_2d20bbd7e394_main.nwd"))
|
||||
refFile = path.join(nwTempGUI,"data_2","fca346db6561_main.nwd")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_fca346db6561_main.nwd"))
|
||||
refFile = path.join(nwTempGUI,"data_3","1489056e0916_main.nwd")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_1489056e0916_main.nwd"))
|
||||
refFile = path.join(nwTempGUI,"data_7","688b6ef52555_main.nwd")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_688b6ef52555_main.nwd"))
|
||||
refFile = path.join(nwTempGUI,"meta","tagsIndex.json")
|
||||
assert cmpFiles(refFile, path.join(nwRef,"gui","1_tagsIndex.json"))
|
||||
|
||||
nwGUI.closeMain()
|
||||
# qtbot.stopForInteraction()
|
||||
|
||||
Reference in New Issue
Block a user