cic-stack/apps/cic-ussd/tests/fixtures/cache.py
2021-08-06 16:29:01 +00:00

16 lines
295 B
Python

# 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