tests: do not run dataviz job in cron tests

This commit is contained in:
Frédéric Péters 2021-04-13 14:43:05 +02:00
parent 41f1e52ce0
commit 39bc369443
1 changed files with 2 additions and 0 deletions

View File

@ -2,11 +2,13 @@ import mock
import pytest
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import override_settings
from django.utils.six import StringIO
pytestmark = pytest.mark.django_db
@override_settings(STATISTICS_PROVIDERS=[])
def test_cron_run(app):
with mock.patch('combo.apps.lingo.AppConfig.hourly') as hourly_job:
call_command('cron')