예제 #1
0
def test_store_loader():
    from archivekit.ext import get_stores
    stores = get_stores()
    assert 's3' in stores, stores
    assert stores['s3'] == S3Store, stores
예제 #2
0
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)
예제 #3
0
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)