diff --git a/ckan/tests/test_none_root.py b/ckan/tests/test_none_root.py index 67cd20e5bee..2314c231d1b 100644 --- a/ckan/tests/test_none_root.py +++ b/ckan/tests/test_none_root.py @@ -1,19 +1,13 @@ -# encoding: utf-8 - -from pylons import config import ckan.plugins as p -import ckan.config.middleware as middleware -import webtest import ckan.tests.helpers as helpers class TestNoneRootCKAN(): @helpers.change_config(u'ckan.root_path', u'/data/{{LANG}}') def test_resource_url(self): - wsgiapp = middleware.make_app(config[u'global_conf'], **config) - app = webtest.TestApp(wsgiapp) + app = helpers._get_test_app() p.load(u'example_theme_v15_fanstatic') content = app.get(u'/en/base.html') - assert u'example_theme.css' in content + assert u'example_theme.min.css' in content assert u'href="/data/fanstatic/example_theme' in content p.unload(u'example_theme_v15_fanstatic')