Document tests: need to remove each document created in tests

There is commit commands inside document, to prevent from partially
writting data (eg. filestore and the db). Thus, the atomicity of the
transaction is broken.

bzr revid: p_christ@hol.gr-20100701175131-8v8xyosvz8nly0pi
This commit is contained in:
P. Christeas 2010-07-01 20:51:31 +03:00
parent 1e99bfc52c
commit 28464cb07c
1 changed files with 2 additions and 0 deletions

View File

@ -65,4 +65,6 @@
!python {model: ir.attachment}: |
ids = self.search(cr, uid, [('res_model', '=', 'res.country'), ('res_id', '=', ref("base.za"))])
assert ids == [ ref("attach_3rd")], ids
-
!delete {moel: ir.attachment, id: attach_3rd, search: }
-