From 1c8c6143696a77289c9a015eea0e3376b859b19c Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Fri, 13 Sep 2024 10:01:24 +0200
Subject: [PATCH] made the test sky-independent. We still test the correct
 behaviour of the fixed bug, but now time-independent.

---
 .../scheduling/test/t_dynamic_scheduling.py   | 34 +++++++++++++------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/SAS/TMSS/backend/services/scheduling/test/t_dynamic_scheduling.py b/SAS/TMSS/backend/services/scheduling/test/t_dynamic_scheduling.py
index a222de02c7a..e1bca9a41ee 100755
--- a/SAS/TMSS/backend/services/scheduling/test/t_dynamic_scheduling.py
+++ b/SAS/TMSS/backend/services/scheduling/test/t_dynamic_scheduling.py
@@ -3344,9 +3344,13 @@ class TestDynamicScheduling(BaseDynamicSchedulingTestCase):
                 "scheduler": "dynamic",
                 "sky": {
                     "min_distance": {
-                        "jupiter": 0.5000368306963754,
-                        "moon": 0.5000368306963754,
-                        "sun": 0.5000368306963754
+                        # JS 20240913: made the test sky-independent. We still test the correct behaviour of the fixed bug, but now time-independent.
+                        # "jupiter": 0.5000368306963754,
+                        # "moon": 0.5000368306963754,
+                        # "sun": 0.5000368306963754
+                        "jupiter": 0,
+                        "moon": 0,
+                        "sun": 0
                     },
                     "min_elevation": {
                         "calibrator": 0,
@@ -3443,17 +3447,27 @@ class TestDynamicScheduling(BaseDynamicSchedulingTestCase):
                 "scheduler": "fixed_time",
                 "sky": {
                     "min_distance": {
-                        "jupiter": 0.2617993877991494,
-                        "moon": 0.5235987755982988,
-                        "sun": 0.5235987755982988
+                        # JS 20240913: made the test sky-independent. We still test the correct behaviour of the fixed bug, but now time-independent.
+                        # "jupiter": 0.2617993877991494,
+                        # "moon": 0.5235987755982988,
+                        # "sun": 0.5235987755982988
+                        "jupiter": 0,
+                        "moon": 0,
+                        "sun": 0
                     },
                     "min_elevation": {
-                        "calibrator": 0.5235987755982988,
-                        "target": 0.5235987755982988
+                        # JS 20240913: made the test sky-independent. We still test the correct behaviour of the fixed bug, but now time-independent.
+                        # "calibrator": 0.5235987755982988,
+                        # "target": 0.5235987755982988
+                        "target": 0,
+                        "calibrator": 0
                     },
                     "transit_offset": {
-                        "from": -37440,
-                        "to": 37440
+                        # JS 20240913: made the test sky-independent. We still test the correct behaviour of the fixed bug, but now time-independent.
+                        # "from": -37440,
+                        # "to": 37440
+                        "from": -43200,
+                        "to": 43200
                     }
                 },
                 "time": {
-- 
GitLab