def __init__(self, catalog): self._catalog = catalog self._cache = SourceCache() self._periodic_callbacks = [] auth = conf.get('auth', 'intake.auth.base.BaseAuth') self._auth = get_auth_class(auth['class'], *auth.get('args', tuple()), **auth.get('kwargs', {}))
def test_get(): auth = get_auth_class('intake.auth.base.BaseAuth') assert isinstance(auth, BaseAuth) auth= get_auth_class('intake.auth.secret.SecretAuth') assert isinstance(auth, SecretAuth)