mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
Just use local disque for testing
This commit is contained in:
@@ -37,10 +37,7 @@ def test_redis():
|
|||||||
|
|
||||||
|
|
||||||
def test_disque():
|
def test_disque():
|
||||||
# Either local disque or Heroku Tynd
|
Conf.DISQUE_NODES = ['127.0.0.1:7711']
|
||||||
Conf.DISQUE_NODES = os.getenv('TYND_DISQUE_NODES', '127.0.0.1:7711').split(',')
|
|
||||||
if os.getenv('TYND_DISQUE_AUTH', False):
|
|
||||||
Conf.DISQUE_AUTH = os.environ['TYND_DISQUE_AUTH']
|
|
||||||
# check broker
|
# check broker
|
||||||
broker = get_broker(list_key='disque_test')
|
broker = get_broker(list_key='disque_test')
|
||||||
assert broker.ping() is True
|
assert broker.ping() is True
|
||||||
|
|||||||
Reference in New Issue
Block a user