mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-18 06:57:53 +08:00
Optparse needs named arguments in call_command
This commit is contained in:
@@ -4,8 +4,8 @@ from django.core.management import call_command
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_qcluster():
|
||||
call_command('qcluster', '--run-once')
|
||||
call_command('qcluster', run_once=True)
|
||||
|
||||
|
||||
def test_qmonitor():
|
||||
call_command('qmonitor', '--run-once')
|
||||
call_command('qmonitor', run_once=True)
|
||||
|
||||
Reference in New Issue
Block a user