Fixed test and cleaned up imports

This commit is contained in:
Veronica K. B. Olsen
2020-06-18 21:20:15 +02:00
parent 670f1c0b35
commit 28641a7b13
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ from PyQt5.QtWidgets import (
from nw.gui.custom import QSwitch, QConfigLayout, PagedDialog, QuotesDialog from nw.gui.custom import QSwitch, QConfigLayout, PagedDialog, QuotesDialog
from nw.core import NWSpellCheck, NWSpellSimple, NWSpellEnchant from nw.core import NWSpellCheck, NWSpellSimple, NWSpellEnchant
from nw.constants import nwAlert, nwQuotes from nw.constants import nwQuotes
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
+3 -4
View File
@@ -31,10 +31,9 @@ import nw
from PyQt5.QtCore import Qt from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap, QColor, QBrush from PyQt5.QtGui import QIcon, QPixmap, QColor, QBrush
from PyQt5.QtWidgets import ( from PyQt5.QtWidgets import (
QDialog, QHBoxLayout, QVBoxLayout, QGridLayout, QLineEdit, QPlainTextEdit, QHBoxLayout, QVBoxLayout, QGridLayout, QLineEdit, QPlainTextEdit, QLabel,
QLabel, QWidget, QTabWidget, QDialogButtonBox, QListWidget, QPushButton, QWidget, QDialogButtonBox, QListWidget, QPushButton, QListWidgetItem,
QListWidgetItem, QColorDialog, QAbstractItemView, QTreeWidget, QCheckBox, QColorDialog, QAbstractItemView, QTreeWidget, QTreeWidgetItem
QTreeWidgetItem
) )
from nw.constants import nwAlert from nw.constants import nwAlert
+1
View File
@@ -273,6 +273,7 @@ def testProjectEditor(qtbot, nwTempGUI, nwRef, nwTemp):
nwGUI.mainConf.backupPath = nwTempGUI nwGUI.mainConf.backupPath = nwTempGUI
projEdit = GuiProjectSettings(nwGUI, nwGUI.theProject) projEdit = GuiProjectSettings(nwGUI, nwGUI.theProject)
projEdit.show()
qtbot.addWidget(projEdit) qtbot.addWidget(projEdit)
projEdit.tabMain.editName.setText("") projEdit.tabMain.editName.setText("")