diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-02-21 13:45:57 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-02-21 13:45:57 +0100 |
| commit | d27526d088653a5f9e892a1fe48829724274d8ee (patch) | |
| tree | 2fb22147057da015f3ef28cfdc58a8a6eaf0fedc /addons/web/controllers/testing.py | |
| parent | 636b3ff2dd331b0c488c24f68ab266b7f4350c41 (diff) | |
[IMP] JS unit tests
split automated suite so web only runs its own JS tests, and web_tests_demo runs its own.
Also reversed changes to index.
todo: use hack cursor thing?
bzr revid: xmo@openerp.com-20140221124557-s875nj0xrf2t85i9
Diffstat (limited to 'addons/web/controllers/testing.py')
| -rw-r--r-- | addons/web/controllers/testing.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py index f58482f7759..598270cfe54 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, registry +from openerp.modules import module from openerp import http from openerp.http import request @@ -90,11 +90,7 @@ class TestRunnerController(http.Controller): @http.route('/web/tests', type='http', auth="none") def index(self, mod=None, **kwargs): - source = kwargs.get('source') - if source: - ms = list(registry.RegistryManager.get(source)._init_modules) - else: - ms = module.get_modules() + ms = module.get_modules() manifests = dict( (name, desc) for name, desc in zip(ms, map(self.load_manifest, ms)) |
