From 3195c94a30e1691fa8465ba5c22c1a177e7ee187 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 Nov 2022 18:02:07 +0100 Subject: Minor fix on tests --- ishtar_common/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/tests.py') diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index e1290b3de..c5d9f5c67 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -2538,8 +2538,10 @@ class ImportTest(TestCase): ), } response = c.post(reverse("new_import"), data) - self.assertIn(str(_('"Associated images" field must be a valid zip file.')), - response.content.decode("utf-8")) + expected = str( + _('"Associated images" field must be a valid zip file.') + ).replace('"', '"') + self.assertIn(expected, response.content.decode("utf-8")) self.assertEqual(response.status_code, 200) def test_archive_import(self): -- cgit v1.2.3