From 017da0cd9ae38b76377f959f05f5913bb8b296f4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 21 Jun 2021 16:44:54 +0200 Subject: Tests: fix dependencies and string evaluation --- archaeological_finds/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index c9ee0f9ed..cb5ca5644 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -873,10 +873,13 @@ class ImportFindTest(ImportTest, FindInit, TestCase): impt.importation() # check errors self.assertEqual(len(impt.errors), 2) + error_msg = str( + _("The division {} {} do not exist for the location {}.") + ).format("Area", "43", "Warehouse test") for error in impt.errors: self.assertEqual( error["error"], - "The division Area 43 do not exist for the location Warehouse " "test.", + error_msg ) def tearDown(self): -- cgit v1.2.3