mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 03:08:12 +08:00
Added management commands to tests
* added --run-once option to the management commands for testing
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user