From 28464cb07c33a759653abda9310fd9e3e99ea4ef Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 1 Jul 2010 20:51:31 +0300 Subject: [PATCH] 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 --- addons/document/test/document_test2.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/document/test/document_test2.yml b/addons/document/test/document_test2.yml index a8962ac1ae8..3a3b573e4e9 100644 --- a/addons/document/test/document_test2.yml +++ b/addons/document/test/document_test2.yml @@ -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: } -