Fixed a few glitches in the testing widget. eric7

Sat, 16 Dec 2023 10:49:32 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 16 Dec 2023 10:49:32 +0100
branch
eric7
changeset 10413
2ecbe43a8e88
parent 10412
883e4bc9bd07
child 10414
7c6bd2366602

Fixed a few glitches in the testing widget.

src/eric7/Testing/TestingWidget.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Testing/TestingWidget.py	Fri Dec 15 15:33:56 2023 +0100
+++ b/src/eric7/Testing/TestingWidget.py	Sat Dec 16 10:49:32 2023 +0100
@@ -532,12 +532,8 @@
             self.__discoverButton.setEnabled(
                 bool(self.venvComboBox.currentText())
                 and bool(self.frameworkComboBox.currentText())
-                and (
-                    (
-                        self.discoverCheckBox.isChecked()
-                        and bool(self.discoveryPicker.currentText())
-                    )
-                )
+                and self.discoverCheckBox.isChecked()
+                and bool(self.discoveryPicker.currentText())
             )
         else:
             self.__discoverButton.setEnabled(False)
@@ -762,6 +758,8 @@
         @type int
         """
         self.__populateTestFrameworkComboBox()
+        self.discoveryList.clear()
+
         self.__updateButtonBoxButtons()
 
         self.versionsButton.setEnabled(bool(self.venvComboBox.currentText()))
@@ -780,6 +778,7 @@
         self.__updateCoverage()
         self.__updateMarkerSupport()
         self.__updatePatternSupport()
+        self.discoveryList.clear()
 
     @pyqtSlot()
     def __updateCoverage(self):

eric ide

mercurial