From 837ad7e39cb60c1bdcb38695d5cef1a6c9106cce Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Fri, 19 Feb 2021 17:19:10 +0100 Subject: [PATCH] Fix tests --- nw/gui/writingstats.py | 2 +- tests/test_gui/test_gui_dialogs.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/nw/gui/writingstats.py b/nw/gui/writingstats.py index 58c56516..d87d22df 100644 --- a/nw/gui/writingstats.py +++ b/nw/gui/writingstats.py @@ -369,7 +369,7 @@ class GuiWritingStats(QDialog): savePath = os.path.join(saveDir, fileName) savePath, _ = QFileDialog.getSaveFileName( - self, self.tr("Save Data As"), savePath + self, self.tr("Save Data As"), savePath, "%s (*.%s)" % (textFmt, fileExt) ) if not savePath: return False diff --git a/tests/test_gui/test_gui_dialogs.py b/tests/test_gui/test_gui_dialogs.py index f4f6f27d..239bd7b5 100644 --- a/tests/test_gui/test_gui_dialogs.py +++ b/tests/test_gui/test_gui_dialogs.py @@ -59,14 +59,3 @@ def testGuiDialogs_Quotes(qtbot, monkeypatch, nwGUI, nwMinimal): nwQuot.close() # 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