diff options
| author | Christophe Simonis <chs@openerp.com> | 2014-02-21 10:55:43 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2014-02-21 10:55:43 +0100 |
| commit | 636b3ff2dd331b0c488c24f68ab266b7f4350c41 (patch) | |
| tree | 9282be814daa114ce0be99bb3bf7390b1b762a71 /addons/web/controllers/testing.py | |
| parent | b79f35471ecd27f1372849a9fd63cac7f740d2fd (diff) | |
[FIX] testing: only load js tests of loaded modules
bzr revid: chs@openerp.com-20140221095543-07lv6as8ym17mj7z
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)) |
