diff --git a/python/lsst/daf/butler/tests/butler_queries.py b/python/lsst/daf/butler/tests/butler_queries.py index 34ae03be95..f82b5b26ed 100644 --- a/python/lsst/daf/butler/tests/butler_queries.py +++ b/python/lsst/daf/butler/tests/butler_queries.py @@ -1804,6 +1804,19 @@ def test_calibration_join_queries(self) -> None: ], ) + # summary_datasets parameter is currently broken in DirectButler. + @unittest.expectedFailure + def test_collection_query_info(self) -> None: + butler = self.make_butler("base.yaml", "datasets.yaml") + + info = butler.collections.query_info("imported_g", include_summary=True) + self.assertEqual(len(info), 1) + self.assertCountEqual(info[0].dataset_types, ["flat", "bias"]) + + info = butler.collections.query_info("imported_g", include_summary=True, summary_datasets=["flat"]) + self.assertEqual(len(info), 1) + self.assertCountEqual(info[0].dataset_types, ["flat"]) + def _get_exposure_ids_from_dimension_records(dimension_records: Iterable[DimensionRecord]) -> list[int]: output = []