[FIX] test_new_api: fix/simplify the result of the onchange on one2many fields
This commit is contained in:
parent
bc8c7596a5
commit
5ae3215f21
|
@ -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),
|
||||
}),
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue