Files
django-q2/django_q/tests/test_monitor.py
T
2015-06-25 13:22:16 +02:00

12 lines
260 B
Python

from django_q.core import Cluster
from django_q.management.commands.qmonitor import monitor
def test_monitor():
c = Cluster()
c.start()
stats = monitor(run_once=True)
c.stop()
assert len(stats) > 0
assert stats[0].cluster_id == c.pid