diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-14 21:17:03 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-14 21:17:03 +0100 |
commit | bf576b5328a87197f7ab08eb9aa303556ae51e49 (patch) | |
tree | f7d0afcff87a0e8995aae704f8688beb9768aeae /archaeological_context_records/tests.py | |
parent | 5deda4ab4d3c9195cc21aeedbafd1b8d5d88ce45 (diff) | |
download | Ishtar-bf576b5328a87197f7ab08eb9aa303556ae51e49.tar.bz2 Ishtar-bf576b5328a87197f7ab08eb9aa303556ae51e49.zip |
Fix importer test
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r-- | archaeological_context_records/tests.py | 5 |
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(): |