Browse Source

Merge branch '8.0-website_mail_qweb' of github.com:hbrunn/social into 8.0-website_mail_qweb

pull/163/head
Holger Brunn 7 years ago
parent
commit
3397ca6ae6
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 10
      website_mail_qweb/tests/test_website_mail_qweb.py

10
website_mail_qweb/tests/test_website_mail_qweb.py

@ -18,3 +18,13 @@ class TestWebsiteMailQweb(HttpCase):
record = UnquoteRecordset(self.env['res.partner'].new(), 'object') record = UnquoteRecordset(self.env['res.partner'].new(), 'object')
self.assertEqual(record.name, 'object.name') self.assertEqual(record.name, 'object.name')
self.assertEqual(record.parent_id.name, 'object.parent_id.name') self.assertEqual(record.parent_id.name, 'object.parent_id.name')
self.assertEqual(record.id, 42)
self.assertEqual(
record.create_date,
self.env['res.partner']._fields['create_date'].null(self.env)
)
self.assertEqual(
record[:1]['create_date'],
self.env['res.partner']._fields['create_date'].null(self.env)
)
self.assertEqual(record._fields, self.env['res.partner']._fields)
Loading…
Cancel
Save