From f1edff4a65170e20d25e3c57b4072fcca48c136c Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Fri, 29 May 2020 12:56:32 +0200 Subject: [PATCH] TMSS-206: fixed tests --- SAS/TMSS/test/tmss_test_data_django_models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SAS/TMSS/test/tmss_test_data_django_models.py b/SAS/TMSS/test/tmss_test_data_django_models.py index fa88a47074e..2c760933902 100644 --- a/SAS/TMSS/test/tmss_test_data_django_models.py +++ b/SAS/TMSS/test/tmss_test_data_django_models.py @@ -256,6 +256,9 @@ def SubtaskInput_test_data(subtask: models.Subtask=None, producer: models.Subtas if subtask is None: subtask = models.Subtask.objects.create(**Subtask_test_data()) + if producer is None: + producer = models.SubtaskOutput.objects.create(**SubtaskOutput_test_data()) + return {"subtask": subtask, "task_relation_blueprint": models.TaskRelationBlueprint.objects.create(**TaskRelationBlueprint_test_data()), "producer": producer, -- GitLab