cic-internal-integration/apps/cic-ussd/tests/fixtures/redis.py

12 lines
214 B
Python
Raw Permalink Normal View History

2021-02-06 16:13:47 +01:00
# third party imports
import pytest
# local imports
from cic_ussd.redis import InMemoryStore
@pytest.fixture(scope='function')
def init_redis_cache(redisdb):
InMemoryStore.cache = redisdb
return redisdb