mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
fixed broken test
This commit is contained in:
parent
2b5bffd687
commit
93cd130da2
1 changed files with 4 additions and 0 deletions
|
|
@ -1224,6 +1224,10 @@ class TestRedisConnection(TestCase):
|
|||
""" get redis connection with name and password """
|
||||
|
||||
connection = redis.Redis()
|
||||
if connection.info().get('redis_version') < '6':
|
||||
# redis versions before 6 don't support name, so skip.
|
||||
return
|
||||
|
||||
connection.config_set('requirepass', 'mypass')
|
||||
|
||||
redis_client = get_redis_connection()
|
||||
|
|
|
|||
Loading…
Reference in a new issue