Fix tests
This commit is contained in:
@@ -369,7 +369,7 @@ class GuiWritingStats(QDialog):
|
|||||||
savePath = os.path.join(saveDir, fileName)
|
savePath = os.path.join(saveDir, fileName)
|
||||||
|
|
||||||
savePath, _ = QFileDialog.getSaveFileName(
|
savePath, _ = QFileDialog.getSaveFileName(
|
||||||
self, self.tr("Save Data As"), savePath
|
self, self.tr("Save Data As"), savePath, "%s (*.%s)" % (textFmt, fileExt)
|
||||||
)
|
)
|
||||||
if not savePath:
|
if not savePath:
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -59,14 +59,3 @@ def testGuiDialogs_Quotes(qtbot, monkeypatch, nwGUI, nwMinimal):
|
|||||||
nwQuot.close()
|
nwQuot.close()
|
||||||
|
|
||||||
# END Test testDialogs_Quotes
|
# END Test testDialogs_Quotes
|
||||||
|
|
||||||
@pytest.mark.gui
|
|
||||||
def testGuiDialogs_Other(qtbot, monkeypatch, nwGUI, tmpDir):
|
|
||||||
"""Various other dialog tests.
|
|
||||||
"""
|
|
||||||
monkeypatch.setattr(QFileDialog, "getExistingDirectory", lambda *args, **kwargs: tmpDir)
|
|
||||||
assert nwGUI.selectProjectPath() == tmpDir
|
|
||||||
|
|
||||||
# qtbot.stopForInteraction()
|
|
||||||
|
|
||||||
# END Test testGuiDialogs_Other
|
|
||||||
|
|||||||
Reference in New Issue
Block a user