Skip to content

Commit 63b897f

Browse files
committed
Merge branch 'tickets/DM-46603'
2 parents d0f40c6 + ace1213 commit 63b897f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/tester/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ def make_compressed_date(date):
146146
147147
Notes
148148
-----
149-
The current implementation gives 4-digit results until September 2024.
149+
The current implementation gives 4-digit results until September 2025.
150150
If this generator is still needed after that, it will need to be tweaked.
151151
"""
152-
year = int(date[:4]) - 2023 # Always 1 digit, 0-1
152+
year = int(date[:4]) - 2024 # Always 1 digit, 0-1
153153
night_id = int(date[-4:]) # Always 4 digits up to 1231
154154
compressed = year*1200 + night_id # Always 4 digits
155155
limit = max_exposure["HSC"] // 10_000

tests/test_tester_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ def test_get_last_group_hsc(self):
114114
s3 = boto3.resource("s3")
115115
bucket = s3.Bucket(self.bucket_name)
116116

117-
last_group = get_last_group(bucket, "HSC", "20231102")
117+
last_group = get_last_group(bucket, "HSC", "20241102")
118118
self.assertEqual(last_group, "11020002")
119119

120120
# Test the case of no match
121-
last_group = get_last_group(bucket, "HSC", "20240101")
121+
last_group = get_last_group(bucket, "HSC", "20250101")
122122
self.assertEqual(last_group, "13010000")
123123

124124
def test_exposure_id_hsc(self):
@@ -151,10 +151,10 @@ def test_group_id_hsc_limits(self):
151151
s3 = boto3.resource("s3")
152152
bucket = s3.Bucket(self.bucket_name)
153153

154-
group = get_last_group(bucket, "HSC", "20240930")
154+
group = get_last_group(bucket, "HSC", "20250930")
155155
self.assertEqual(group, "21300000")
156156
with self.assertRaises(RuntimeError):
157-
get_last_group(bucket, "HSC", "20241001")
157+
get_last_group(bucket, "HSC", "20251001")
158158

159159

160160
class TesterGoupIdTest(unittest.TestCase):

0 commit comments

Comments
 (0)