--- a/Allura/allura/tests/helpers.py
+++ b/Allura/allura/tests/helpers.py
@@ -9,6 +9,7 @@
from webtest import TestApp
from webob import Request, Response
+import ew
from ming.orm import ThreadLocalORMSession
from allura.lib.app_globals import Globals
@@ -34,7 +35,11 @@
conf_dir = tg.config.here
except AttributeError:
conf_dir = getcwd()
- ENV.set_environment({})
+ environ = {}
+ ew.TemplateEngine.initialize({})
+ ew.widget_context.set_up(environ)
+ ew.widget_context.resource_manager = ew.ResourceManager()
+ ENV.set_environment(environ)
test_file = path.join(conf_dir, config)
cmd = SetupCommand('setup-app')
cmd.run([test_file])