src/eric7/Testing/TestingWidget.py

branch
eric7
changeset 10413
2ecbe43a8e88
parent 10405
df7e1694d0eb
child 10415
af9a6dac2611
equal deleted inserted replaced
10412:883e4bc9bd07 10413:2ecbe43a8e88
530 # Discover button 530 # Discover button
531 if self.__mode in (TestingWidgetModes.IDLE, TestingWidgetModes.STOPPED): 531 if self.__mode in (TestingWidgetModes.IDLE, TestingWidgetModes.STOPPED):
532 self.__discoverButton.setEnabled( 532 self.__discoverButton.setEnabled(
533 bool(self.venvComboBox.currentText()) 533 bool(self.venvComboBox.currentText())
534 and bool(self.frameworkComboBox.currentText()) 534 and bool(self.frameworkComboBox.currentText())
535 and ( 535 and self.discoverCheckBox.isChecked()
536 ( 536 and bool(self.discoveryPicker.currentText())
537 self.discoverCheckBox.isChecked()
538 and bool(self.discoveryPicker.currentText())
539 )
540 )
541 ) 537 )
542 else: 538 else:
543 self.__discoverButton.setEnabled(False) 539 self.__discoverButton.setEnabled(False)
544 self.__discoverButton.setDefault(False) 540 self.__discoverButton.setDefault(False)
545 541
760 756
761 @param index index of the selected environment 757 @param index index of the selected environment
762 @type int 758 @type int
763 """ 759 """
764 self.__populateTestFrameworkComboBox() 760 self.__populateTestFrameworkComboBox()
761 self.discoveryList.clear()
762
765 self.__updateButtonBoxButtons() 763 self.__updateButtonBoxButtons()
766 764
767 self.versionsButton.setEnabled(bool(self.venvComboBox.currentText())) 765 self.versionsButton.setEnabled(bool(self.venvComboBox.currentText()))
768 766
769 self.__updateCoverage() 767 self.__updateCoverage()
778 """ 776 """
779 self.__resetResults() 777 self.__resetResults()
780 self.__updateCoverage() 778 self.__updateCoverage()
781 self.__updateMarkerSupport() 779 self.__updateMarkerSupport()
782 self.__updatePatternSupport() 780 self.__updatePatternSupport()
781 self.discoveryList.clear()
783 782
784 @pyqtSlot() 783 @pyqtSlot()
785 def __updateCoverage(self): 784 def __updateCoverage(self):
786 """ 785 """
787 Private slot to update the state of the coverage checkbox depending on 786 Private slot to update the state of the coverage checkbox depending on

eric ide

mercurial