From 86f210cfbfa5f68c4141d47e436291b36f3f0d28 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:55:09 +0100 Subject: [PATCH] Fix duplicate tests issue --- novelwriter/types.py | 5 +---- tests/conftest.py | 8 +------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/novelwriter/types.py b/novelwriter/types.py index 23455b97..e1b05ead 100644 --- a/novelwriter/types.py +++ b/novelwriter/types.py @@ -24,10 +24,7 @@ along with this program. If not, see . from __future__ import annotations from PyQt6.QtCore import Qt -from PyQt6.QtGui import ( - QColor, QFont, QPainter, QTextBlockFormat, QTextCharFormat, QTextCursor, - QTextFormat -) +from PyQt6.QtGui import QColor, QFont, QPainter, QTextCharFormat, QTextCursor, QTextFormat from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QHeaderView, QSizePolicy, QStyle # Qt Alignment Flags diff --git a/tests/conftest.py b/tests/conftest.py index 1097ae6c..5ffebaa7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -172,13 +172,7 @@ def nwGUI(qtbot, monkeypatch, functionFixture): nwGUI.show() qtbot.wait(20) - yield nwGUI - - qtbot.wait(20) - nwGUI.closeMain() - qtbot.wait(20) - - return + return nwGUI ##