From 0915247a6af16b0422e71ebb2470f20d1b03838c Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Thu, 5 Sep 2024 22:26:53 -0700 Subject: [PATCH] Make sure query-datasets complains if collection wildcard with find-first --- tests/test_cliCmdQueryDatasets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_cliCmdQueryDatasets.py b/tests/test_cliCmdQueryDatasets.py index a50d8bbc62..8ec35ed6e8 100644 --- a/tests/test_cliCmdQueryDatasets.py +++ b/tests/test_cliCmdQueryDatasets.py @@ -236,6 +236,9 @@ def testWhere(self): self.assertAstropyTablesEqual(tables, expectedTables, filterColumns=True) + with self.assertRaises(RuntimeError): + self._queryDatasets(repo=self.repoDir, collections="*", find_first=True) + def testGlobDatasetType(self): """Test specifying dataset type.""" # Create and register an additional DatasetType