From dd96432c6efa2b71286843e29c3723955631e6ce Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 17 Nov 2019 16:30:33 +0100 Subject: [PATCH] Deleted tests from removed code --- tests/reference/gui/1_tagsIndex.json | 1 - tests/test_gui.py | 26 -------------------------- 2 files changed, 27 deletions(-) delete mode 100644 tests/reference/gui/1_tagsIndex.json diff --git a/tests/reference/gui/1_tagsIndex.json b/tests/reference/gui/1_tagsIndex.json deleted file mode 100644 index 8c365f5c..00000000 --- a/tests/reference/gui/1_tagsIndex.json +++ /dev/null @@ -1 +0,0 @@ -{"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]], "2fca346db6561": [], "02d20bbd7e394": [], "7688b6ef52555": []}, "novelIndex": {"31489056e0916": [[1, 1, "Novel", "SCENE"], [3, 2, "Chapter", "SCENE"], [8, 3, "Scene", "SCENE"], [15, 4, "Some Section", "SCENE"]]}, "noteIndex": {"2fca346db6561": [[1, 1, "Jane Doe", "NOTE"]], "02d20bbd7e394": [[1, 1, "Main Plot", "NOTE"]], "7688b6ef52555": [[1, 1, "Main Location", "NOTE"]]}} \ No newline at end of file diff --git a/tests/test_gui.py b/tests/test_gui.py index 89121ace..d5633b0e 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -9,7 +9,6 @@ from os import path, unlink from PyQt5.QtCore import Qt from nw.gui.dialogs.projecteditor import GuiProjectEditor -from nw.gui.dialogs.timelineview import GuiTimeLineView from nw.gui.dialogs.itemeditor import GuiItemEditor from nw.constants import * @@ -248,35 +247,10 @@ def testMainWindows(qtbot, nwTempGUI, nwRef): 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")) - if sys.version_info[0] >= 3 and sys.version_info[1] >= 6: - refFile = path.join(nwTempGUI,"meta","tagsIndex.json") - assert cmpFiles(refFile, path.join(nwRef,"gui","1_tagsIndex.json")) nwGUI.closeMain() # qtbot.stopForInteraction() -@pytest.mark.gui -def testTimeLineView(qtbot, nwTempGUI, nwRef): - nwGUI = nw.main(["--testmode","--config=%s" % nwTempGUI]) - qtbot.addWidget(nwGUI) - nwGUI.show() - qtbot.waitForWindowShown(nwGUI) - qtbot.wait(stepDelay) - - # Create new, save, open project - nwGUI.theProject.handleSeed = 42 - assert nwGUI.openProject(nwTempGUI) - qtbot.wait(stepDelay) - - timeLine = GuiTimeLineView(nwGUI, nwGUI.theProject, nwGUI.theIndex) - qtbot.addWidget(timeLine) - - assert timeLine.numRows == 4 - assert timeLine.numCols == 3 - - # qtbot.stopForInteraction() - nwGUI.closeMain() - @pytest.mark.gui def testProjectEditor(qtbot, nwTempGUI, nwRef): nwGUI = nw.main(["--testmode","--config=%s" % nwTempGUI])