mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-20 11:28:34 +08:00
random queue names for ironmq test
This commit is contained in:
@@ -4,6 +4,7 @@ import os
|
||||
import redis
|
||||
from django_q.conf import Conf
|
||||
from django_q.brokers import get_broker, Broker
|
||||
from django_q.humanhash import uuid
|
||||
|
||||
|
||||
def test_broker():
|
||||
@@ -99,7 +100,7 @@ def test_ironmq():
|
||||
Conf.IRON_MQ = {'token': os.getenv('IRON_MQ_TOKEN'),
|
||||
'project_id': os.getenv('IRON_MQ_PROJECT_ID')}
|
||||
# check broker
|
||||
broker = get_broker(list_key='djangoQ')
|
||||
broker = get_broker(list_key=uuid()[0])
|
||||
assert broker.ping() is True
|
||||
assert broker.info() is not None
|
||||
# initialize the queue
|
||||
|
||||
Reference in New Issue
Block a user