diff options
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
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) |