From b1908843a6cfee511a650da2835d8e6dbae5b04c Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Thu, 30 Apr 2020 17:13:06 +0200 Subject: [PATCH] TMSS-60: start/stop time are python datetimes, not strings --- SAS/TMSS/test/tmss_test_data_django_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/test/tmss_test_data_django_models.py b/SAS/TMSS/test/tmss_test_data_django_models.py index 0473b8c7b18..dfdde4add91 100644 --- a/SAS/TMSS/test/tmss_test_data_django_models.py +++ b/SAS/TMSS/test/tmss_test_data_django_models.py @@ -258,10 +258,10 @@ def Subtask_test_data(task_blueprint: models.TaskBlueprint=None, subtask_templat specifications_doc = get_default_json_object_for_schema(subtask_template.schema) if start_time is None: - start_time = datetime.utcnow().isoformat() + start_time = datetime.utcnow() if stop_time is None: - stop_time = datetime.utcnow().isoformat() + stop_time = datetime.utcnow() if cluster is None: cluster = models.Cluster.objects.create(name="dummy cluster", location="downstairs", tags=[]) -- GitLab