diff --git a/tests/test_butler.py b/tests/test_butler.py index 5cceaff8ed..8850fced3e 100644 --- a/tests/test_butler.py +++ b/tests/test_butler.py @@ -387,6 +387,10 @@ def runPutGetTest(self, storageClass: StorageClass, datasetTypeName: str) -> But # Create DatasetRef for put using default run. refIn = DatasetRef(datasetType, dataId, id=uuid.UUID(int=1), run=butler.run) + # Check that getDeferred fails with standalone ref. + with self.assertRaises(LookupError): + butler.getDeferred(refIn) + # Put the dataset again, since the last thing we did was remove it # and we want to use the default collection. ref = butler.put(metric, refIn)