Skip to content

Commit

Permalink
Add do-nothing implementation of new methods to remote registry.
Browse files Browse the repository at this point in the history
This is only to suppress errors in the tests.
  • Loading branch information
andy-slac committed Sep 27, 2023
1 parent a7b070b commit 5589236
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/lsst/daf/butler/registries/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@

if TYPE_CHECKING:
from .._butlerConfig import ButlerConfig
from ..core import OpaqueTableDefinition
from ..registry._registry import CollectionArgType
from ..registry.interfaces import CollectionRecord, DatastoreRegistryBridgeManager

Expand Down Expand Up @@ -671,6 +672,19 @@ def queryDatasetAssociations(
# Docstring inherited from lsst.daf.butler.registry.Registry
raise NotImplementedError()

def get_datastore_records(self, ref: DatasetRef) -> DatasetRef:
# Docstring inherited from base class.
# For now this does not do anything and just returns the ref.
return ref

Check warning on line 678 in python/lsst/daf/butler/registries/remote.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/daf/butler/registries/remote.py#L678

Added line #L678 was not covered by tests

def store_datastore_records(self, refs: Mapping[str, DatasetRef]) -> None:
# Docstring inherited from base class.
return

Check warning on line 682 in python/lsst/daf/butler/registries/remote.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/daf/butler/registries/remote.py#L682

Added line #L682 was not covered by tests

def make_datastore_tables(self, tables: Mapping[str, OpaqueTableDefinition]) -> None:
# Docstring inherited from base class.
return

storageClasses: StorageClassFactory
"""All storage classes known to the registry (`StorageClassFactory`).
"""

0 comments on commit 5589236

Please sign in to comment.