def __init__(self, *args, **kw): super().__init__(*args, **kw) from kinto.core.utils import sqlalchemy if sqlalchemy is None: return from .test_cache import PostgreSQLCacheTest settings = {**PostgreSQLCacheTest.settings} config = testing.setUp() config.add_settings(settings) self.cache = postgresql_cache.load_from_config(config)