projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc8c759
)
[FIX] test_new_api: fix/simplify the result of the onchange on one2many fields
author
Raphael Collet
<rco@openerp.com>
Mon, 24 Nov 2014 16:22:47 +0000
(17:22 +0100)
committer
Raphael Collet
<rco@openerp.com>
Mon, 24 Nov 2014 16:22:47 +0000
(17:22 +0100)
openerp/addons/test_new_api/tests/test_onchange.py
patch
|
blob
|
history
diff --git
a/openerp/addons/test_new_api/tests/test_onchange.py
b/openerp/addons/test_new_api/tests/test_onchange.py
index
da28bdf
..
709e07f
100644
(file)
--- a/
openerp/addons/test_new_api/tests/test_onchange.py
+++ b/
openerp/addons/test_new_api/tests/test_onchange.py
@@
-140,14
+140,10
@@
class TestOnChange(common.TransactionCase):
self.assertItemsEqual(result['value']['messages'], [
(0, 0, {
'name': "[%s] %s" % ("Foo", USER.name),
- 'body': BODY,
- 'author': USER.id,
- 'size': len(BODY),
}),
(1, message.id, {
'name': "[%s] %s" % ("Foo", USER.name),
- 'body': BODY,
- 'author': USER.id,
+ # Note: size is computed because it was not provided beforehand
'size': len(BODY),
}),
])