Files
django-q2/django_q/tests/test_commands.py
T
Ilan 5a3f875baa Added management commands to tests
* added --run-once option to the management commands for testing
2015-07-16 15:17:15 +02:00

12 lines
217 B
Python

import pytest
from django.core.management import call_command
@pytest.mark.django_db
def test_qcluster():
call_command('qcluster', '--run-once')
def test_qmonitor():
call_command('qmonitor', '--run-once')