comparison test/db_test_base.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 506c7ee9a385
children 19e12a540b91
comparison
equal deleted inserted replaced
5318:506c7ee9a385 5319:62de601bdf6f
3354 HTMLProperty.is_edit_ok = self.e2 3354 HTMLProperty.is_edit_ok = self.e2
3355 if os.path.exists(self.SENDMAILDEBUG): 3355 if os.path.exists(self.SENDMAILDEBUG):
3356 #os.remove(self.SENDMAILDEBUG) 3356 #os.remove(self.SENDMAILDEBUG)
3357 pass 3357 pass
3358 3358
3359 @pytest.mark.xfail
3360 def testInnerMain(self): 3359 def testInnerMain(self):
3361 cl = self.client 3360 cl = self.client
3362 cl.session_api = MockNull(_sid="1234567890") 3361 cl.session_api = MockNull(_sid="1234567890")
3363 self.form ['@nonce'] = anti_csrf_nonce(cl, cl) 3362 self.form ['@nonce'] = anti_csrf_nonce(cl, cl)
3364 cl.form = makeForm(self.form) 3363 cl.form = makeForm(self.form)

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