comparison test/test_postgresql.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
201 def tearDown(self): 201 def tearDown(self):
202 ClassicInitTest.tearDown(self) 202 ClassicInitTest.tearDown(self)
203 postgresqlOpener.tearDown(self) 203 postgresqlOpener.tearDown(self)
204 204
205 205
206 from session_common import RDBMSTest 206 from session_common import SessionTest
207 @skip_postgresql 207 @skip_postgresql
208 class postgresqlSessionTest(postgresqlOpener, RDBMSTest, unittest.TestCase): 208 class postgresqlSessionTest(postgresqlOpener, SessionTest, unittest.TestCase):
209 def setUp(self): 209 def setUp(self):
210 postgresqlOpener.setUp(self) 210 postgresqlOpener.setUp(self)
211 RDBMSTest.setUp(self) 211 SessionTest.setUp(self)
212 def tearDown(self): 212 def tearDown(self):
213 RDBMSTest.tearDown(self) 213 SessionTest.tearDown(self)
214 postgresqlOpener.tearDown(self) 214 postgresqlOpener.tearDown(self)
215 215
216 @skip_postgresql 216 @skip_postgresql
217 class postgresqlSpecialActionTestCase(postgresqlOpener, SpecialActionTest, 217 class postgresqlSpecialActionTestCase(postgresqlOpener, SpecialActionTest,
218 unittest.TestCase): 218 unittest.TestCase):

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