From 5ae106869988f80bcb099bfdd7a27353442bbec8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 11 Sep 2019 23:01:39 +0200 Subject: Fix export task test (wrong arguments) --- ishtar_common/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/tests.py') diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 939a29d2b..2cad1ef81 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -1082,7 +1082,8 @@ class SerializationTest(GenericSerializationTest, TestCase): GEO_MODEL_LIST + DIRECTORY_MODEL_LIST + OPERATION_MODEL_LIST + \ CR_MODEL_LIST + FIND_MODEL_LIST + WAREHOUSE_MODEL_LIST task = models.ExportTask.objects.create(state="S") - launch_export(task) + launch_export(task.pk) + task = models.ExportTask.objects.get(pk=task.pk) current_number = {} for model in model_list: current_number[(model.__module__, model.__name__)] = \ @@ -1105,7 +1106,8 @@ class SerializationTest(GenericSerializationTest, TestCase): ("archaeological_warehouse.models", "ContainerLocalisation"): 1, } ) - launch_export(task) + launch_export(task.pk) + task = models.ExportTask.objects.get(pk=task.pk) self.generic_restore_test(task.result.path, current_number, model_list) -- cgit v1.2.3