From 2ef19eb1d625d4cf95d93c70f4e71d5e376b3098 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Fri, 2 Feb 2024 13:00:21 -0700 Subject: [PATCH] Support the new day_obs butler dimension in tests --- tests/test_calibrate.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_calibrate.py b/tests/test_calibrate.py index d93739c93c..84ae92bf52 100755 --- a/tests/test_calibrate.py +++ b/tests/test_calibrate.py @@ -59,9 +59,14 @@ def _makeTestRepo(cls, root): "physical_filter", {"instrument": "notACam", "name": "r", "band": "r"}, ) + if "day_obs" in butler.dimensions: + butler.registry.insertDimensionData( + "day_obs", + {"id": 20240201, "instrument": "notACam"}, + ) butler.registry.insertDimensionData( "visit", - {"instrument": "notACam", "id": 101, "name": "101", "physical_filter": "r"}, + {"instrument": "notACam", "id": 101, "name": "101", "physical_filter": "r", "day_obs": 20240201}, ) butler.registry.insertDimensionData("detector", {"instrument": "notACam", "id": 42, "full_name": "42"})