diff --git a/mail_layout_preview/__manifest__.py b/mail_layout_preview/__manifest__.py index 425bccadb..37875aed1 100644 --- a/mail_layout_preview/__manifest__.py +++ b/mail_layout_preview/__manifest__.py @@ -5,7 +5,7 @@ "name": "Mail Preview", "summary": """ Preview email templates in the browser""", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "license": "AGPL-3", "author": "Camptocamp SA,Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", diff --git a/mail_layout_preview/tests/test_layout_preview.py b/mail_layout_preview/tests/test_layout_preview.py index 5bcfe0ea7..986598bf6 100644 --- a/mail_layout_preview/tests/test_layout_preview.py +++ b/mail_layout_preview/tests/test_layout_preview.py @@ -63,9 +63,8 @@ class TestController(HttpCase, TestLayoutMixin): templates = self.env["mail.template"].search([("model_id.model", "=", model)]) url_pattern = "/email-preview/res.partner/mail.email_template_partner/{}" for el, tmpl in zip(list_items, templates): - self.assertEqual( - el.attrib, {"class": "preview", "href": url_pattern.format(tmpl.id)} - ) + self.assertEqual(el.attrib["class"], "preview") + self.assertEqual(el.attrib["href"], url_pattern.format(tmpl.id)) def test_controller2(self): self.authenticate("admin", "admin")