summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_context_records/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py
index f1e6581d7..1c900184c 100644
--- a/archaeological_context_records/tests.py
+++ b/archaeological_context_records/tests.py
@@ -88,8 +88,9 @@ class ImportContextRecordTest(ImportTest, TestCase):
self.init_cr_targetkey(impt)
# Dating is not in models that can be created but force new is
# set for a column that references Dating
- with self.assertRaises(ImproperlyConfigured):
- impt.importation()
+ impt.importation()
+ self.assertEqual(len(impt.errors), 4)
+ self.assertIn("doesn't exist in the database.", impt.errors[0]['error'])
# retry with only Dating (no context record)
for cr in models.ContextRecord.objects.all():