tests: add call to clean_autotiles command

This commit is contained in:
Frédéric Péters 2018-09-17 09:40:11 +02:00
parent fab379d739
commit 397a5e42c0
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from webtest import TestApp
from django.conf import settings
from django.contrib.auth.models import User
from django.core.management import call_command
from django.core.urlresolvers import reverse
from django.utils.six.moves.urllib import parse as urlparse
from django.test import override_settings
@ -205,3 +206,6 @@ def test_auto_tile(app, site):
params=json.dumps({'var1': 'one', 'var2': 'two'}),
content_type='application/json')
assert resp.text.strip() == '/var1=one/var2=/'
def test_clean_autotiles(app, site):
call_command('clean_autotiles')