From 0aede8b426833b24d4c24aa53892ad4861248aee Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Fri, 22 Dec 2023 12:33:54 +0100 Subject: [PATCH] TMSS-2877: use specific (old) constraint version 8 to keep the tests succeeding --- .../services/scheduling/test/t_scheduling_constraints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/services/scheduling/test/t_scheduling_constraints.py b/SAS/TMSS/backend/services/scheduling/test/t_scheduling_constraints.py index f85b80f3725..242835fea90 100755 --- a/SAS/TMSS/backend/services/scheduling/test/t_scheduling_constraints.py +++ b/SAS/TMSS/backend/services/scheduling/test/t_scheduling_constraints.py @@ -97,8 +97,9 @@ class BaseSchedulingConstraintsTestCase(unittest.TestCase): @staticmethod def create_simple_observation_scheduling_unit(name:str=None, scheduling_set=None, obs_duration:int=60, - constraints=None) -> models.SchedulingUnitDraft: - constraints_template = models.SchedulingConstraintsTemplate.get_version_or_latest(name="constraints") + constraints=None, + constraint_version: int=8) -> models.SchedulingUnitDraft: + constraints_template = models.SchedulingConstraintsTemplate.get_version_or_latest(name="constraints", version=constraint_version) if constraints is None: # by default, apply no constraints, and let the caller be specific on the constraints needed -- GitLab