
* Migrate from aioredis to redis with asyncio support Add test for redis type Fix imports from wrong module (for tests_sync) * fixing merge conflicts and up to dating the lock file Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
10 lines
284 B
Python
10 lines
284 B
Python
from aredis_om import redis
|
|
from aredis_om.util import ASYNC_MODE
|
|
|
|
|
|
def test_redis_type():
|
|
import redis as sync_redis_module
|
|
import redis.asyncio as async_redis_module
|
|
|
|
mapping = {True: async_redis_module, False: sync_redis_module}
|
|
assert mapping[ASYNC_MODE] is redis
|