def test_store_loader(): from archivekit.ext import get_stores stores = get_stores() assert 's3' in stores, stores assert stores['s3'] == S3Store, stores
def _open_store(store_type, **kwargs): store_cls = get_stores().get(store_type) if store_cls is None: raise TypeError("No such store type: %s" % store_type) return store_cls(**kwargs)