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