summaryrefslogtreecommitdiff
path: root/archaeological_context_records/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r--archaeological_context_records/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py
index c9795fce7..6bb293e4d 100644
--- a/archaeological_context_records/tests.py
+++ b/archaeological_context_records/tests.py
@@ -92,7 +92,10 @@ class ImportContextRecordTest(ImportTest, TestCase):
# set for a column that references Dating
impt.importation()
self.assertEqual(len(impt.errors), 4)
- self.assertIn("doesn't exist in the database.", impt.errors[0]['error'])
+ self.assertTrue(
+ "doesn't exist in the database." in impt.errors[0]['error'] or
+ "n'existe pas dans la base" in impt.errors[0]['error']
+ )
# retry with only Dating (no context record)
for cr in models.ContextRecord.objects.all():