tests: add call to clean_autotiles command
This commit is contained in:
parent
fab379d739
commit
397a5e42c0
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue