eric7/Testing/TestingWidget.py

branch
unittest
changeset 9072
8d3ae97ee666
parent 9070
eab09a1ab8ce
child 9081
2bbbc95972bf
--- a/eric7/Testing/TestingWidget.py	Tue May 17 17:23:07 2022 +0200
+++ b/eric7/Testing/TestingWidget.py	Wed May 18 08:43:36 2022 +0200
@@ -315,17 +315,20 @@
                              start)
     
     @pyqtSlot(str)
-    def setTestFile(self, testFile):
+    def setTestFile(self, testFile, forProject=False):
         """
         Public slot to set the given test file as the current one.
         
         @param testFile path of the test file
         @type str
+        @param forProject flag indicating that this call is for a project
+            (defaults to False)
+        @type bool (optional)
         """
         if testFile:
             self.__insertTestFile(testFile)
         
-        self.discoverCheckBox.setChecked(not bool(testFile))
+        self.discoverCheckBox.setChecked(forProject or not bool(testFile))
         
         self.tabWidget.setCurrentIndex(0)
     

eric ide

mercurial