mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 12:58:11 +08:00
adds qinfo management command
It seems more practical to give this its own command instead of `qmonitor --info`
This commit is contained in:
@@ -6,7 +6,12 @@ from django.core.management import call_command
|
||||
def test_qcluster():
|
||||
call_command('qcluster', run_once=True)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_qmonitor():
|
||||
call_command('qmonitor', run_once=True)
|
||||
call_command('qmonitor', info=True)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_qinfo():
|
||||
call_command('qinfo')
|
||||
|
||||
@@ -2,7 +2,7 @@ import pytest
|
||||
import redis
|
||||
|
||||
from django_q.cluster import Cluster
|
||||
from django_q.monitor import monitor, Stat, info, ping_redis
|
||||
from django_q.monitor import monitor, Stat, ping_redis
|
||||
|
||||
|
||||
def test_monitor():
|
||||
|
||||
Reference in New Issue
Block a user