Skip to content

Commit

Permalink
Merge branch 'tickets/DM-26407' into tickets/DM-27033
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 26, 2020
2 parents ad89340 + c94f312 commit dcd61db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/obs/base/instrument_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from lsst.obs.base import Instrument
from lsst.obs.base.gen2to3 import TranslatorFactory
from lsst.daf.butler import Registry
from lsst.daf.butler import ButlerConfig
from lsst.daf.butler import RegistryConfig


@dataclasses.dataclass
Expand Down Expand Up @@ -79,7 +79,9 @@ def test_getCamera(self):
def test_register(self):
"""Test that register() sets appropriate Dimensions.
"""
registry = Registry.fromConfig(ButlerConfig())
registryConfig = RegistryConfig()
registryConfig["db"] = "sqlite://"
registry = Registry.createFromConfig(registryConfig)
# check that the registry starts out empty
self.assertFalse(registry.queryDataIds(["instrument"]).toSequence())
self.assertFalse(registry.queryDataIds(["detector"]).toSequence())
Expand Down

0 comments on commit dcd61db

Please sign in to comment.