Mercurial > p > roundup > code
diff test/test_memorydb.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 | 364c54991861 |
| children | d26921b851c3 |
line wrap: on
line diff
--- a/test/test_memorydb.py Thu Apr 19 20:01:43 2018 +0200 +++ b/test/test_memorydb.py Fri Apr 20 18:46:28 2018 +0200 @@ -48,8 +48,8 @@ pass -from session_common import DBMTest -class memorydbSessionTest(memorydbOpener, DBMTest, unittest.TestCase): +from session_common import SessionTest +class memorydbSessionTest(memorydbOpener, SessionTest, unittest.TestCase): def setUp(self): self.db = self.module.Database(config, 'admin') setupSchema(self.db, 1, self.module)
