Added management commands to tests

* added --run-once option to the management commands for testing
This commit is contained in:
Ilan
2015-07-16 15:17:15 +02:00
parent 1e81cc413d
commit 5a3f875baa
3 changed files with 29 additions and 4 deletions
+11
View File
@@ -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')