diff --git a/SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py b/SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py index cf1188b047255a5fec2c2ae0a0687fcc68ba8943..8146359b38d12d78d408233d28ea8514ceb33ff9 100755 --- a/SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py +++ b/SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py @@ -424,9 +424,7 @@ class TestDailyConstraints(TestCase): def test_can_run_within_timewindow_with_daytime_constraint_returns_correct_value(self): # todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked # remove other constraints: - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_distance'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_target_elevation'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_calibrator_elevation'] = {} + self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky'] = {} # set constraint to test self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['daily']['require_day'] = True @@ -560,9 +558,7 @@ class TestDailyConstraints(TestCase): def test_can_run_within_timewindow_with_nighttime_constraint_returns_correct_value(self): # todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked # remove other constraints: - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_distance'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_target_elevation'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_calibrator_elevation'] = {} + self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky'] = {} # set constraint to test self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['daily']['require_night'] = True @@ -694,9 +690,7 @@ class TestDailyConstraints(TestCase): def test_can_run_within_timewindow_with_twilight_constraint_returns_correct_value(self): # todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked # remove other constraints: - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_distance'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_target_elevation'] = {} - self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky']['min_calibrator_elevation'] = {} + self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['sky'] = {} # set constraint to test self.scheduling_unit_blueprint.draft.scheduling_constraints_doc['daily']['avoid_twilight'] = True