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
commit017da0cd9ae38b76377f959f05f5913bb8b296f4 (patch)
treebb323aa958260988ec53c89f366dd311795e6536 /archaeological_finds
parent0a6b8708431eb45fcd426227fa7b54505d6eb668 (diff)
downloadIshtar-017da0cd9ae38b76377f959f05f5913bb8b296f4.tar.bz2
Ishtar-017da0cd9ae38b76377f959f05f5913bb8b296f4.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):