From bc4620d2c6108745550e58cdac7eab1b07805079 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Fri, 25 Apr 2014 11:03:58 +0200 Subject: [PATCH] [FIX] Still trying to fix tests bzr revid: fme@openerp.com-20140425090358-1ydohuemx1tk715u --- addons/web/controllers/testing.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py index 932da58fa07..63eac97f9e0 100644 --- a/addons/web/controllers/testing.py +++ b/addons/web/controllers/testing.py @@ -61,8 +61,8 @@ TESTING = Template(u"""
- - + +${bundle('web.assets_backend') | n} % for module, jss, tests, templates in files: % for js in jss: % if not js.endswith('/apps.js'): @@ -134,10 +134,16 @@ class TestRunnerController(http.Controller): for mod, tests in itertools.izip(sorted_mods, tests) ] - return TESTING.render(files=files, dependencies=json.dumps( + def bundle(xmlid): + return request.render(xmlid, lazy=False) + + return TESTING.render(bundle=bundle, files=files, dependencies=json.dumps( [name for name in sorted_mods if module.get_module_resource(name, 'static') - if manifests[name]['js']])) + # TODO fme: find a way to detect modules with js bundles + # if manifests[name]['js'] + ])) + def load_manifest(self, name): manifest = module.load_information_from_description_file(name)