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

16 lines
295 B
Python
Raw Permalink Normal View History

2021-08-06 18:29:01 +02:00
# standard imports
# external imports
import pytest
# local imports
from cic_ussd.cache import Cache
from cic_ussd.session.ussd_session import UssdSession
@pytest.fixture(scope='function')
def init_cache(redisdb):
Cache.store = redisdb
UssdSession.store = redisdb
return redisdb