DatastoreTestHelper¶
- class lsst.daf.butler.tests.DatastoreTestHelper¶
Bases:
object
Helper methods for Datastore tests
Methods Summary
makeDatastore
([sub])Make a new Datastore instance of the appropriate type.
setUpDatastoreTests
(registryClass, configClass)Shared setUp code for all Datastore tests
Methods Documentation
- makeDatastore(sub=None)¶
Make a new Datastore instance of the appropriate type.
- Parameters:
- substr, optional
If not None, the returned Datastore will be distinct from any Datastore constructed with a different value of
sub
. For PosixDatastore, for example, the converse is also true, andsub
is used as a subdirectory to form the new root.
- Returns:
- datastore
Datastore
Datastore constructed by this routine using the supplied optional subdirectory if supported.
- datastore
- setUpDatastoreTests(registryClass, configClass)¶
Shared setUp code for all Datastore tests