You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
284 B
Python
11 lines
284 B
Python
2 years ago
|
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
|