Fixed an issue with the unittest dialog not remembering the entered test name. 5_1_x

Tue, 26 Apr 2011 17:08:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Apr 2011 17:08:48 +0200
branch
5_1_x
changeset 1001
c4aa6e1a23b7
parent 999
e738a45a3dc2
child 1004
9ff75adb6170

Fixed an issue with the unittest dialog not remembering the entered test name.

PyUnit/UnittestDialog.py file | annotate | diff | comparison | revisions
--- a/PyUnit/UnittestDialog.py	Tue Apr 26 13:55:27 2011 +0200
+++ b/PyUnit/UnittestDialog.py	Tue Apr 26 17:08:48 2011 +0200
@@ -221,7 +221,11 @@
         self.sbLabel.setText(self.trUtf8("Preparing Testsuite"))
         QApplication.processEvents()
         
-        testFunctionName = self.testComboBox.currentText() or "suite"
+        testFunctionName = self.testComboBox.currentText()
+        if testFunctionName:
+            self.insertTestName(testFunctionName)
+        else:
+            testFunctionName = "suite"
         
         # build the module name from the filename without extension
         self.testName = os.path.splitext(os.path.basename(prog))[0]

eric ide

mercurial