summaryrefslogtreecommitdiff
path: root/addons/web/controllers/testing.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-02-21 15:35:18 +0100
committerXavier Morel <xmo@openerp.com>2014-02-21 15:35:18 +0100
commitbb7eb5269917cfde51abb50a4dca175ddd371fb9 (patch)
treeb39033e9180f49b02fe825b3c7c1cdfcadef5f01 /addons/web/controllers/testing.py
parent42763039f0ceb3fcaf875d6afbc29d9ea9827350 (diff)
[REM] RPC from js/qunit tests
They're a pain in the ass, they never worked right and they're basically useless. Screw it. bzr revid: xmo@openerp.com-20140221143518-hv3rjkw2b00ughvh
Diffstat (limited to 'addons/web/controllers/testing.py')
-rw-r--r--addons/web/controllers/testing.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py
index 598270cfe54..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;
@@ -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)