comparison 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
comparison
equal deleted inserted replaced
5318:506c7ee9a385 5319:62de601bdf6f
121 def tearDown(self): 121 def tearDown(self):
122 FilterCacheTest.tearDown(self) 122 FilterCacheTest.tearDown(self)
123 self.nuke_database() 123 self.nuke_database()
124 124
125 125
126 from session_common import RDBMSTest 126 from session_common import SessionTest
127 @skip_mysql 127 @skip_mysql
128 class mysqlSessionTest(mysqlOpener, RDBMSTest, unittest.TestCase): 128 class mysqlSessionTest(mysqlOpener, SessionTest, unittest.TestCase):
129 def setUp(self): 129 def setUp(self):
130 mysqlOpener.setUp(self) 130 mysqlOpener.setUp(self)
131 RDBMSTest.setUp(self) 131 SessionTest.setUp(self)
132 def tearDown(self): 132 def tearDown(self):
133 RDBMSTest.tearDown(self) 133 SessionTest.tearDown(self)
134 mysqlOpener.tearDown(self) 134 mysqlOpener.tearDown(self)
135 135
136 @skip_mysql 136 @skip_mysql
137 class mysqlSpecialActionTestCase(mysqlOpener, SpecialActionTest, 137 class mysqlSpecialActionTestCase(mysqlOpener, SpecialActionTest,
138 unittest.TestCase): 138 unittest.TestCase):

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