[IMP] http tests: implement a test cursor that keeps a transaction open accross requests
authorRaphael Collet <rco@openerp.com>
Tue, 8 Apr 2014 15:17:36 +0000 (17:17 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 8 Apr 2014 15:17:36 +0000 (17:17 +0200)
commitf0fd48c44a9e9a9fd124e3413040227ab95aefd6
tree9d15f28c8067ff3651c610b0b708de5b1f38fab0
parent6bc60505f4e25d5ce7181f30d33692a8e7d08fe0
[IMP] http tests: implement a test cursor that keeps a transaction open accross requests
 - TestCursor subclasses Cursor, and simulates commit and rollback with savepoints
 - the registry manages a test mode, in which it only uses the test cursor
 - a reentrant lock forces the serialization of parallel requests

bzr revid: rco@openerp.com-20140408151736-j0guy68i2wjexy3d
openerp/http.py
openerp/modules/registry.py
openerp/sql_db.py
openerp/tests/common.py