Optparse needs named arguments in call_command

This commit is contained in:
Ilan
2015-07-16 16:11:32 +02:00
parent 80887ffd9c
commit 0dbeccdfda

View File

@@ -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)