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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Apr 2011 17:08:08 +0200
changeset 1000
c9f094c33a1d
parent 998
eb7a1af5d9fc
child 1002
1151d1ea562a

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:10 2011 +0200
+++ b/PyUnit/UnittestDialog.py	Tue Apr 26 17:08:08 2011 +0200
@@ -222,7 +222,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