diff --git a/README.rst b/README.rst index 915dae4d..ca4a079b 100644 --- a/README.rst +++ b/README.rst @@ -69,11 +69,11 @@ You can also setup cache aliases like in Django settings: import asyncio - from aiocache import settings, caches, SimpleMemoryCache, RedisCache + from aiocache import caches, SimpleMemoryCache, RedisCache from aiocache.serializers import DefaultSerializer, PickleSerializer # You can use either classes or strings for referencing classes - settings.set_config({ + caches.set_config({ 'default': { 'cache': "aiocache.SimpleMemoryCache", 'serializer': { diff --git a/tests/ut/conftest.py b/tests/ut/conftest.py index ca226ad4..7a9c8875 100644 --- a/tests/ut/conftest.py +++ b/tests/ut/conftest.py @@ -2,7 +2,7 @@ import asynctest from aiocache.base import BaseCache -from aiocache import caches, settings, RedisCache, MemcachedCache +from aiocache import caches, RedisCache, MemcachedCache from aiocache.plugins import BasePlugin from aiocache.serializers import DefaultSerializer @@ -14,18 +14,6 @@ def pytest_namespace(): } -@pytest.fixture(autouse=True) -def reset_settings(): - settings.set_config({ - 'default': { - 'cache': "aiocache.SimpleMemoryCache", - 'serializer': { - 'class': "aiocache.serializers.DefaultSerializer" - } - } - }) - - @pytest.fixture(autouse=True) def reset_caches(): caches.set_config({