odoo/addons/document_ftp/test
Olivier Dony 313897186c [IMP] document_ftp: improve/sanitize transaction management during tests
Now that spurious commits were removed in document module,
the test would not run properly anymore.
We do need special care with transactions when we test the
FTP layer because operations on the virtual FS are done
in their own transaction, and immediately committed.
In order for test code and FTP operations to be able
to see each other, the transactions need to be synchronized. 
The current test transaction needs to be rolled back
or committed after reach FTP operation so it can "see" the
latest changes in the database. Similarly, we must force
a commit of the test transaction whenever we want the
FTP layer to be able to see its effects.

bzr revid: odo@openerp.com-20111130120244-3m15sxdx1x5x1q1x
2011-11-30 13:02:44 +01:00
..
document_ftp_test.yml [REF] Document_ftp 2010-09-27 22:38:56 +05:30
document_ftp_test2.yml [IMP] document_ftp: improve/sanitize transaction management during tests 2011-11-30 13:02:44 +01:00
document_ftp_test3.yml Document, calendar: Patch code from trunk-xrg branch 2010-10-12 14:20:30 +03:00
document_ftp_test4.yml [IMP] document_ftp: improve/sanitize transaction management during tests 2011-11-30 13:02:44 +01:00
document_ftp_test5.yml document: ACL setup, based on ir.rules 2010-10-27 13:24:28 +03:00