Skip to content

Commit 42a91d4

Browse files
committed
Add test for redis type
1 parent bfb72dc commit 42a91d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_redis_type.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from aredis_om import redis
2+
from aredis_om._util import ASYNC_MODE
3+
4+
5+
def test_redis_type():
6+
import redis as sync_redis
7+
import redis.asyncio as async_redis
8+
9+
mapping = {True: async_redis, False: sync_redis}
10+
assert mapping[ASYNC_MODE] is redis

0 commit comments

Comments
 (0)