diff options
| author | Bharat R. Devnani (OpenERP) <bde@tinyerp.com> | 2014-03-04 11:08:49 +0530 |
|---|---|---|
| committer | Bharat R. Devnani (OpenERP) <bde@tinyerp.com> | 2014-03-04 11:08:49 +0530 |
| commit | 67b68d8e4e7015e368324dd0c02aa29fed71d359 (patch) | |
| tree | d72e75ef050bd65dcb53d2a27305a0285ca2963b /addons/web/controllers/testing.py | |
| parent | 7c1af9ef1441b2097c815758670b70a690598d62 (diff) | |
| parent | e76c36d704c142fca08bf1297897d4091bf7a4cb (diff) | |
[MERGE] merged with main web
bzr revid: bde@tinyerp.com-20140304053849-wpvxs1ojl5jyjokt
Diffstat (limited to 'addons/web/controllers/testing.py')
| -rw-r--r-- | addons/web/controllers/testing.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py index 0160f0f28cd..c99efed4294 100644 --- a/addons/web/controllers/testing.py +++ b/addons/web/controllers/testing.py @@ -52,7 +52,6 @@ TESTING = Template(u"""<!DOCTYPE html> <script src="/web/static/lib/qunit/qunit.js"></script> <script type="text/javascript"> - var oe_db_info = ${db_info | n}; // List of modules, each module is preceded by its dependencies var oe_all_dependencies = ${dependencies | n}; QUnit.config.testTimeout = 5 * 60 * 1000; @@ -89,7 +88,7 @@ TESTING = Template(u"""<!DOCTYPE html> class TestRunnerController(http.Controller): @http.route('/web/tests', type='http', auth="none") - def index(self, req, mod=None, **kwargs): + def index(self, mod=None, **kwargs): ms = module.get_modules() manifests = dict( (name, desc) @@ -114,7 +113,7 @@ class TestRunnerController(http.Controller): to_test = sorted_mods if mod != '*': if mod not in manifests: - return req.not_found(NOTFOUND.render(module=mod)) + return request.not_found(NOTFOUND.render(module=mod)) idx = sorted_mods.index(mod) to_test = [None] * len(sorted_mods) to_test[idx] = mod @@ -134,16 +133,10 @@ class TestRunnerController(http.Controller): for mod, tests in itertools.izip(sorted_mods, tests) ] - # if all three db_info parameters are present, send them to the page - db_info = dict((k, v) for k, v in kwargs.iteritems() - if k in ['source', 'supadmin', 'password']) - if len(db_info) != 3: - db_info = None - return TESTING.render(files=files, dependencies=json.dumps( [name for name in sorted_mods if module.get_module_resource(name, 'static') - if manifests[name]['js']]), db_info=json.dumps(db_info)) + if manifests[name]['js']])) def load_manifest(self, name): manifest = module.load_information_from_description_file(name) |
