diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-11 23:01:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-11 23:01:39 +0200 |
commit | d230420d8fe2782029fcb0020dd92ced67cbab6a (patch) | |
tree | 8e000902b498585366ee4a6416cd3b887ba6c6bf /ishtar_common/tests.py | |
parent | c9ffe94572f9853848e6aa3bad4246ea15e21319 (diff) | |
download | Ishtar-d230420d8fe2782029fcb0020dd92ced67cbab6a.tar.bz2 Ishtar-d230420d8fe2782029fcb0020dd92ced67cbab6a.zip |
Fix export task test (wrong arguments)
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) |