diff --git a/tests/reference/gui/1_tagsIndex.json b/tests/reference/gui/1_tagsIndex.json new file mode 100644 index 00000000..57b2ed92 --- /dev/null +++ b/tests/reference/gui/1_tagsIndex.json @@ -0,0 +1 @@ +{"tagIndex": {"Jane": [3, "2fca346db6561", "CHARACTER"], "MainPlot": [3, "02d20bbd7e394", "PLOT"], "Home": [3, "7688b6ef52555", "WORLD"]}, "refIndex": {"31489056e0916": [[5, "@pov", "Jane", 3], [6, "@plot", "MainPlot", 3], [11, "@pov", "Jane", 8], [12, "@plot", "MainPlot", 8], [13, "@location", "Home", 8], [17, "@char", "Jane", 15]]}, "novelIndex": {"31489056e0916": [[1, 1, "Novel", "SCENE"], [3, 2, "Chapter", "SCENE"], [8, 3, "Scene", "SCENE"], [15, 4, "Some Section", "SCENE"]]}} \ No newline at end of file diff --git a/tests/test_gui.py b/tests/test_gui.py index c4857ab8..02b6bef1 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -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()