diff --git a/SAS/TMSS/test/tmss_test_data_django_models.py b/SAS/TMSS/test/tmss_test_data_django_models.py
index fa88a47074e6d7fb82a5c925d39c1f8cbf87e816..2c7609339029bfe643e2bbc9938d52d74d6b3403 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,