From 1c812529c47c7f4d457d8aa57d360159893671f9 Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Fri, 14 Jan 2022 13:48:10 -0500 Subject: [PATCH] [FIX] mail_layout_preview: fix unit test --- mail_layout_preview/__manifest__.py | 2 +- mail_layout_preview/tests/test_layout_preview.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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")