Files
django-q2/django_q/tests/test_commands.py
Ilan e86308b434 adds qinfo management command
It seems more practical to give this its own command instead of `qmonitor --info`
2015-08-10 13:20:17 +02:00

18 lines
311 B
Python

import pytest
from django.core.management import call_command
@pytest.mark.django_db
def test_qcluster():
call_command('qcluster', run_once=True)
@pytest.mark.django_db
def test_qmonitor():
call_command('qmonitor', run_once=True)
@pytest.mark.django_db
def test_qinfo():
call_command('qinfo')