diff options
Diffstat (limited to 'addons/web/controllers/testing.py')
| -rw-r--r-- | addons/web/controllers/testing.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py index 598270cfe54..f58482f7759 100644 --- a/addons/web/controllers/testing.py +++ b/addons/web/controllers/testing.py @@ -8,7 +8,7 @@ import operator import os from mako.template import Template -from openerp.modules import module +from openerp.modules import module, registry from openerp import http from openerp.http import request @@ -90,7 +90,11 @@ class TestRunnerController(http.Controller): @http.route('/web/tests', type='http', auth="none") def index(self, mod=None, **kwargs): - ms = module.get_modules() + source = kwargs.get('source') + if source: + ms = list(registry.RegistryManager.get(source)._init_modules) + else: + ms = module.get_modules() manifests = dict( (name, desc) for name, desc in zip(ms, map(self.load_manifest, ms)) |
