adds qinfo management command

It seems more practical to give this its own command instead of `qmonitor --info`
This commit is contained in:
Ilan
2015-08-10 13:20:17 +02:00
parent 63030aa9d1
commit e86308b434
5 changed files with 22 additions and 15 deletions
+6 -1
View File
@@ -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')
+1 -1
View File
@@ -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():