This commit is contained in:
Vincent Driessen 2012-02-24 11:36:33 +01:00
parent 844c5ed8c7
commit 3c05f20d95
1 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ from redis import Redis
from logbook import NullHandler
from rq import conn
def find_empty_redis_database():
"""Tries to connect to a random Redis database (starting from 4), and
will use/connect it when no keys are in there.
@ -64,5 +65,5 @@ class RQTestCase(unittest.TestCase):
# Pop the connection to Redis
testconn = conn.pop()
assert testconn == cls.testconn, 'Wow, something really nasty happened to the Redis connection stack. Check your setup.'
assert testconn == cls.testconn, 'Wow, something really nasty ' \
'happened to the Redis connection stack. Check your setup.'