Skip to content

Commit 1e128bd

Browse files
committed
.
1 parent 30c9818 commit 1e128bd

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ You can also setup cache aliases like in Django settings:
6969
7070
import asyncio
7171
72-
from aiocache import settings, caches, SimpleMemoryCache, RedisCache
72+
from aiocache import caches, SimpleMemoryCache, RedisCache
7373
from aiocache.serializers import DefaultSerializer, PickleSerializer
7474
7575
# You can use either classes or strings for referencing classes
76-
settings.set_config({
76+
caches.set_config({
7777
'default': {
7878
'cache': "aiocache.SimpleMemoryCache",
7979
'serializer': {

examples/run_all.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
pushd "$(dirname "$0")"
44

5-
for f in `find . -name '*.py' -not -path "./frameworks/*"`; do
6-
echo "########## Running $f #########"
7-
python $f || exit 1
8-
echo;echo;echo
9-
done
5+
python lru_plugin.py
6+
7+
# for f in `find . -name '*.py' -not -path "./frameworks/*"`; do
8+
# echo "########## Running $f #########"
9+
# python $f || exit 1
10+
# echo;echo;echo
11+
# done
1012

1113
popd

tests/ut/conftest.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import asynctest
33

44
from aiocache.base import BaseCache
5-
from aiocache import caches, settings, RedisCache, MemcachedCache
5+
from aiocache import caches, RedisCache, MemcachedCache
66
from aiocache.plugins import BasePlugin
77
from aiocache.serializers import DefaultSerializer
88

@@ -14,18 +14,6 @@ def pytest_namespace():
1414
}
1515

1616

17-
@pytest.fixture(autouse=True)
18-
def reset_settings():
19-
settings.set_config({
20-
'default': {
21-
'cache': "aiocache.SimpleMemoryCache",
22-
'serializer': {
23-
'class': "aiocache.serializers.DefaultSerializer"
24-
}
25-
}
26-
})
27-
28-
2917
@pytest.fixture(autouse=True)
3018
def reset_caches():
3119
caches.set_config({

0 commit comments

Comments
 (0)