[FIX] testing: only load js tests of loaded modules

bzr revid: chs@openerp.com-20140221095543-07lv6as8ym17mj7z
This commit is contained in:
Christophe Simonis
2014-02-21 10:55:43 +01:00
parent b79f35471e
commit 636b3ff2dd
+6 -2
View File
@@ -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))