eric7/Testing/TestingWidget.py

branch
unittest
changeset 9072
8d3ae97ee666
parent 9070
eab09a1ab8ce
child 9081
2bbbc95972bf
equal deleted inserted replaced
9070:eab09a1ab8ce 9072:8d3ae97ee666
313 """ 313 """
314 self.__insertHistory(self.discoveryPicker, self.__discoverHistory, 314 self.__insertHistory(self.discoveryPicker, self.__discoverHistory,
315 start) 315 start)
316 316
317 @pyqtSlot(str) 317 @pyqtSlot(str)
318 def setTestFile(self, testFile): 318 def setTestFile(self, testFile, forProject=False):
319 """ 319 """
320 Public slot to set the given test file as the current one. 320 Public slot to set the given test file as the current one.
321 321
322 @param testFile path of the test file 322 @param testFile path of the test file
323 @type str 323 @type str
324 @param forProject flag indicating that this call is for a project
325 (defaults to False)
326 @type bool (optional)
324 """ 327 """
325 if testFile: 328 if testFile:
326 self.__insertTestFile(testFile) 329 self.__insertTestFile(testFile)
327 330
328 self.discoverCheckBox.setChecked(not bool(testFile)) 331 self.discoverCheckBox.setChecked(forProject or not bool(testFile))
329 332
330 self.tabWidget.setCurrentIndex(0) 333 self.tabWidget.setCurrentIndex(0)
331 334
332 @pyqtSlot(str) 335 @pyqtSlot(str)
333 def __insertTestFile(self, prog): 336 def __insertTestFile(self, prog):

eric ide

mercurial