Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
argaen committed May 7, 2017
1 parent 30c9818 commit 3ff6586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down
14 changes: 1 addition & 13 deletions tests/ut/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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({
Expand Down

0 comments on commit 3ff6586

Please sign in to comment.