[Osaas-commits] r42 - in trunk: . server/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 20 17:28:43 CET 2008
Author: bh
Date: 2008-11-20 17:28:42 +0100 (Thu, 20 Nov 2008)
New Revision: 42
Modified:
trunk/ChangeLog
trunk/server/test/test_formparser.py
Log:
* server/test/test_formparser.py (FormParsingTests.check_exception):
Check whether an exception was raised at all. Without this,
function calls which did not raise exceptions were considered as a
passed test.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-11-20 14:37:50 UTC (rev 41)
+++ trunk/ChangeLog 2008-11-20 16:28:42 UTC (rev 42)
@@ -1,5 +1,12 @@
2008-11-20 Bernhard Herzog <bh at intevation.de>
+ * server/test/test_formparser.py (FormParsingTests.check_exception):
+ Check whether an exception was raised at all. Without this,
+ function calls which did not raise exceptions were considered as a
+ passed test.
+
+2008-11-20 Bernhard Herzog <bh at intevation.de>
+
Implement Feature Request #822:
Add support for PostGreSQL databases in addition to the Oracle
database support.
Modified: trunk/server/test/test_formparser.py
===================================================================
--- trunk/server/test/test_formparser.py 2008-11-20 14:37:50 UTC (rev 41)
+++ trunk/server/test/test_formparser.py 2008-11-20 16:28:42 UTC (rev 42)
@@ -72,6 +72,9 @@
except:
self.fail("Unexpected exception:\n%s"
% "".join(traceback.format_exception(*sys.exc_info())))
+ else:
+ self.fail("Calling %r with %r and %r did not raise an exception"
+ % (function, args, kw))
def test_missing_required_parameters_in_formdata(self):
More information about the Osaas-commits
mailing list