diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-09 15:46:37 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-09 15:55:06 +0200 |
| commit | fa80836933a7ff4786d9d460f41eb4a90f944b08 (patch) | |
| tree | 554e9aa4fa7e139433a441d810dbf1468c22afed /archaeological_context_records/tests.py | |
| parent | 1515521ec11a29fa463bb0988d1663b6a8cb03ea (diff) | |
| download | Ishtar-fa80836933a7ff4786d9d460f41eb4a90f944b08.tar.bz2 Ishtar-fa80836933a7ff4786d9d460f41eb4a90f944b08.zip | |
🧪 fix tests to test import trigerred by UI
Diffstat (limited to 'archaeological_context_records/tests.py')
| -rw-r--r-- | archaeological_context_records/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 905b8a3c6..d55d632df 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -116,7 +116,7 @@ class ImportContextRecordTest(ImportTest, TestCase): models_ope.Operation.objects.get_or_create( code_patriarche="184440", operation_type=models_ope.OperationType.objects.all()[0]) - impt.importation() + impt.start_import() self.assertEqual(models.ContextRecord.objects.count() - nb, new_nb) new = models.ContextRecord.objects.order_by("-pk").all()[:new_nb] for cr in new: @@ -131,7 +131,7 @@ class ImportContextRecordTest(ImportTest, TestCase): impt.initialize() self.init_cr_targetkey(impt) - impt.importation() + impt.start_import() # new context records has now been imported current_nb = models.ContextRecord.objects.count() self.assertEqual(current_nb, old_nb + 4) @@ -154,7 +154,7 @@ class ImportContextRecordTest(ImportTest, TestCase): impt.initialize() self.init_cr_targetkey(impt) - impt.importation() + impt.start_import() # no model defined in created_models: normal import current_nb = models.ContextRecord.objects.count() self.assertEqual(current_nb, old_nb + 4) @@ -170,7 +170,7 @@ class ImportContextRecordTest(ImportTest, TestCase): impt = form.save(self.ishtar_user) impt.initialize() self.init_cr_targetkey(impt) - impt.importation() + impt.start_import() self.assertEqual(len(impt.errors), 4) self.assertTrue( @@ -194,7 +194,7 @@ class ImportContextRecordTest(ImportTest, TestCase): impt = form.save(self.ishtar_user) impt.initialize() self.init_cr_targetkey(impt) - impt.importation() + impt.start_import() current_nb = models.ContextRecord.objects.count() self.assertEqual(current_nb, 4) |
