mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 09:18:12 +08:00
Test get_ids
This commit is contained in:
@@ -4,7 +4,7 @@ import uuid
|
|||||||
from django_q.tasks import async_task
|
from django_q.tasks import async_task
|
||||||
from django_q.brokers import get_broker
|
from django_q.brokers import get_broker
|
||||||
from django_q.cluster import Cluster
|
from django_q.cluster import Cluster
|
||||||
from django_q.monitor import monitor, info
|
from django_q.monitor import monitor, info, get_ids
|
||||||
from django_q.status import Stat
|
from django_q.status import Stat
|
||||||
from django_q.conf import Conf
|
from django_q.conf import Conf
|
||||||
|
|
||||||
@@ -16,6 +16,7 @@ def test_monitor(monkeypatch):
|
|||||||
c = Cluster()
|
c = Cluster()
|
||||||
c.start()
|
c.start()
|
||||||
stats = monitor(run_once=True)
|
stats = monitor(run_once=True)
|
||||||
|
assert get_ids() is True
|
||||||
c.stop()
|
c.stop()
|
||||||
assert len(stats) > 0
|
assert len(stats) > 0
|
||||||
found_c = False
|
found_c = False
|
||||||
|
|||||||
Reference in New Issue
Block a user