Fixed tests
This commit is contained in:
+3
-3
@@ -10,7 +10,7 @@ from PyQt5.QtCore import Qt
|
|||||||
|
|
||||||
from nw.gui import (
|
from nw.gui import (
|
||||||
GuiProjectSettings, GuiItemEditor, GuiAbout, GuiBuildNovel,
|
GuiProjectSettings, GuiItemEditor, GuiAbout, GuiBuildNovel,
|
||||||
GuiDocMerge, GuiDocSplit, GuiSessionLog
|
GuiDocMerge, GuiDocSplit, GuiWritingStats
|
||||||
)
|
)
|
||||||
from nw.constants import *
|
from nw.constants import *
|
||||||
|
|
||||||
@@ -410,7 +410,7 @@ def testItemEditor(qtbot, nwTempGUI, nwRef, nwTemp):
|
|||||||
# qtbot.stopForInteraction()
|
# qtbot.stopForInteraction()
|
||||||
|
|
||||||
@pytest.mark.gui
|
@pytest.mark.gui
|
||||||
def testSessionLogExport(qtbot, nwTempGUI, nwRef, nwTemp):
|
def testWritingStatsExport(qtbot, nwTempGUI, nwRef, nwTemp):
|
||||||
nwGUI = nw.main(["--testmode","--config=%s" % nwTempGUI, "--data=%s" % nwTemp])
|
nwGUI = nw.main(["--testmode","--config=%s" % nwTempGUI, "--data=%s" % nwTemp])
|
||||||
qtbot.addWidget(nwGUI)
|
qtbot.addWidget(nwGUI)
|
||||||
nwGUI.show()
|
nwGUI.show()
|
||||||
@@ -421,7 +421,7 @@ def testSessionLogExport(qtbot, nwTempGUI, nwRef, nwTemp):
|
|||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
|
|
||||||
nwGUI.mainConf.lastPath = nwTempGUI
|
nwGUI.mainConf.lastPath = nwTempGUI
|
||||||
sessLog = GuiSessionLog(nwGUI, nwGUI.theProject)
|
sessLog = GuiWritingStats(nwGUI, nwGUI.theProject)
|
||||||
sessLog.show()
|
sessLog.show()
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user