summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-06-21 16:44:54 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-06-21 17:15:54 +0200
commit8e1c09dc8c0e115c6e7899b44f3fa50dd3fa59b2 (patch)
treebb323aa958260988ec53c89f366dd311795e6536 /archaeological_finds
parent24af25278bff6927e0d442f537efeb6c7bf7182c (diff)
downloadIshtar-8e1c09dc8c0e115c6e7899b44f3fa50dd3fa59b2.tar.bz2
Ishtar-8e1c09dc8c0e115c6e7899b44f3fa50dd3fa59b2.zip
Tests: fix dependencies and string evaluation
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/tests.py5
1 files changed, 4 insertions, 1 deletions
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):