diff test/test_mysql.py @ 5319:62de601bdf6f

Fix commits although a Reject exception is raised Fix the problem that changes are committed to the database (due to commits to otk handling) even when a Reject exception occurs. The fix implements separate database connections for otk/session handling and normal database operation.
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 20 Apr 2018 18:46:28 +0200
parents efb34cbdba7c
children d26921b851c3
line wrap: on
line diff
--- a/test/test_mysql.py	Thu Apr 19 20:01:43 2018 +0200
+++ b/test/test_mysql.py	Fri Apr 20 18:46:28 2018 +0200
@@ -123,14 +123,14 @@
         self.nuke_database()
 
 
-from session_common import RDBMSTest
+from session_common import SessionTest
 @skip_mysql
-class mysqlSessionTest(mysqlOpener, RDBMSTest, unittest.TestCase):
+class mysqlSessionTest(mysqlOpener, SessionTest, unittest.TestCase):
     def setUp(self):
         mysqlOpener.setUp(self)
-        RDBMSTest.setUp(self)
+        SessionTest.setUp(self)
     def tearDown(self):
-        RDBMSTest.tearDown(self)
+        SessionTest.tearDown(self)
         mysqlOpener.tearDown(self)
 
 @skip_mysql

Roundup Issue Tracker: http://roundup-tracker.org/