Add test coverage of GuiManuscriptBuild tool

This commit is contained in:
Veronica Berglyd Olsen
2023-07-17 20:56:31 +02:00
parent 839bc778aa
commit d9e0730ad2
2 changed files with 140 additions and 15 deletions
+1 -15
View File
@@ -229,7 +229,7 @@ class GuiManuscriptBuild(QDialog):
self.btnReset.clicked.connect(self._doResetBuildName)
self.btnBrowse.clicked.connect(self._doSelectPath)
self.dlgButtons.clicked.connect(self._dialogButtonClicked)
self.listFormats.itemSelectionChanged.connect(self._formatSelectionChanged)
self.listFormats.itemSelectionChanged.connect(self._resetProgress)
logger.debug("Ready: GuiManuscriptBuild")
@@ -256,12 +256,6 @@ class GuiManuscriptBuild(QDialog):
# Private Slots
##
@pyqtSlot(str, bool)
def _applyBuildOptions(self, key: str, state: bool):
"""Set the build options for the build."""
self._build.setValue(key, state)
return
@pyqtSlot("QAbstractButton*")
def _dialogButtonClicked(self, button: QAbstractButton):
"""Handle button clicks from the dialog button box."""
@@ -292,14 +286,6 @@ class GuiManuscriptBuild(QDialog):
self._build.setLastBuildName(bName)
return
@pyqtSlot()
def _formatSelectionChanged(self):
"""The user selected a different format, so we reset the
progress bar.
"""
self.buildProgress.setValue(0)
return
@pyqtSlot()
def _resetProgress(self):
"""Set the progress bar back to 0."""