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 | 5ae106869988f80bcb099bfdd7a27353442bbec8 (patch) | |
tree | 8e000902b498585366ee4a6416cd3b887ba6c6bf | |
parent | 67ac2f4bbd33c25a89bc19998b0befcf9999b1ea (diff) | |
download | Ishtar-5ae106869988f80bcb099bfdd7a27353442bbec8.tar.bz2 Ishtar-5ae106869988f80bcb099bfdd7a27353442bbec8.zip |
Fix export task test (wrong arguments)
-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) |