683 |
683 |
684 self.raise_() |
684 self.raise_() |
685 self.activateWindow() |
685 self.activateWindow() |
686 |
686 |
687 @pyqtSlot(bool) |
687 @pyqtSlot(bool) |
688 def on_discoverCheckBox_toggled(self, checked): |
688 def on_discoverCheckBox_toggled(self, _checked): |
689 """ |
689 """ |
690 Private slot handling state changes of the 'discover' checkbox. |
690 Private slot handling state changes of the 'discover' checkbox. |
691 |
691 |
692 @param checked state of the checkbox |
692 @param _checked state of the checkbox (unused) |
693 @type bool |
693 @type bool |
694 """ |
694 """ |
695 if not bool(self.discoveryPicker.currentText()): |
695 if not bool(self.discoveryPicker.currentText()): |
696 if self.__project and self.__project.isOpen(): |
696 if self.__project and self.__project.isOpen(): |
697 self.__insertDiscovery(self.__project.getProjectPath()) |
697 self.__insertDiscovery(self.__project.getProjectPath()) |
1168 self.__updateProgress() |
1168 self.__updateProgress() |
1169 |
1169 |
1170 self.__resultsModel.updateTestResults([result]) |
1170 self.__resultsModel.updateTestResults([result]) |
1171 |
1171 |
1172 @pyqtSlot(list, str) |
1172 @pyqtSlot(list, str) |
1173 def __testProcessFinished(self, results, output): |
1173 def __testProcessFinished(self, _results, output): |
1174 """ |
1174 """ |
1175 Private slot to handle the 'testFinished' signal of the executor. |
1175 Private slot to handle the 'testFinished' signal of the executor. |
1176 |
1176 |
1177 @param results list of test result objects (if not sent via the |
1177 @param _results list of test result objects (if not sent via the |
1178 'testResult' signal |
1178 'testResult' signal) (unused) |
1179 @type list of TestResult |
1179 @type list of TestResult |
1180 @param output string containing the test process output (if any) |
1180 @param output string containing the test process output (if any) |
1181 @type str |
1181 @type str |
1182 """ |
1182 """ |
1183 self.__recentLog = output |
1183 self.__recentLog = output |
1493 "<br/>".join(error.splitlines()), |
1493 "<br/>".join(error.splitlines()), |
1494 ), |
1494 ), |
1495 ) |
1495 ) |
1496 self.sbLabel.clear() |
1496 self.sbLabel.clear() |
1497 |
1497 |
1498 def __testDiscoveryProcessFinished(self, results, output): # noqa: U100 |
1498 def __testDiscoveryProcessFinished(self, _results, output): |
1499 """ |
1499 """ |
1500 Private slot to handle the 'testFinished' signal of the executor in |
1500 Private slot to handle the 'testFinished' signal of the executor in |
1501 discovery mode. |
1501 discovery mode. |
1502 |
1502 |
1503 @param results list of test result objects (if not sent via the |
1503 @param _results list of test result objects (if not sent via the |
1504 'testResult' signal) |
1504 'testResult' signal) (unused) |
1505 @type list of TestResult |
1505 @type list of TestResult |
1506 @param output string containing the test process output (if any) |
1506 @param output string containing the test process output (if any) |
1507 @type str |
1507 @type str |
1508 """ |
1508 """ |
1509 self.__recentLog = output |
1509 self.__recentLog = output |
1615 self.__cw.buttonBox.accepted.connect(self.close) |
1615 self.__cw.buttonBox.accepted.connect(self.close) |
1616 self.__cw.buttonBox.rejected.connect(self.close) |
1616 self.__cw.buttonBox.rejected.connect(self.close) |
1617 |
1617 |
1618 self.__cw.setTestFile(testfile) |
1618 self.__cw.setTestFile(testfile) |
1619 |
1619 |
1620 def eventFilter(self, obj, event): |
1620 def eventFilter(self, _obj, event): |
1621 """ |
1621 """ |
1622 Public method to filter events. |
1622 Public method to filter events. |
1623 |
1623 |
1624 @param obj reference to the object the event is meant for |
1624 @param _obj reference to the object the event is meant for (unused) |
1625 @type QObject |
1625 @type QObject |
1626 @param event reference to the event object |
1626 @param event reference to the event object |
1627 @type QEvent |
1627 @type QEvent |
1628 @return flag indicating, whether the event was handled |
1628 @return flag indicating, whether the event was handled |
1629 @rtype bool |
1629 @rtype bool |