From b003d2aca48044ded44e3bf890c7ed929ba3c449 Mon Sep 17 00:00:00 2001 From: jcoux Date: Fri, 12 Aug 2016 15:27:37 +0200 Subject: [PATCH] Fix encoding on report tests --- account_financial_report_qweb/tests/abstract_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_financial_report_qweb/tests/abstract_test.py b/account_financial_report_qweb/tests/abstract_test.py index a5e7a294..0f97f173 100644 --- a/account_financial_report_qweb/tests/abstract_test.py +++ b/account_financial_report_qweb/tests/abstract_test.py @@ -43,8 +43,10 @@ class AbstractTest(TransactionCase): report_html = self.env['report'].get_html( self.report, self.qweb_report_name ) - self.assertRegexpMatches(report_html, self.report_title) - self.assertRegexpMatches(report_html, self.report.account_ids[0].name) + self.assertTrue(self.report_title.encode('utf8') in report_html) + self.assertTrue( + self.report.account_ids[0].name.encode('utf8') in report_html + ) def test_02_generation_report_xlsx(self): """Check if report XLSX is correctly generated"""