summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-01-23 13:42:50 +0100
committerXavier Morel <xmo@openerp.com>2014-01-23 13:42:50 +0100
commit84d8cde6fea5cf3d54e5db8fa6d508d069eff8c8 (patch)
treeaddb240c6007e002cf6347487b07741e84131804 /addons
parente40646d98d928cbc6b8d2f95a64b32c1667fb362 (diff)
[FIX] test controller
bzr revid: xmo@openerp.com-20140123124250-ek1g3a0ucuhtsgqv
Diffstat (limited to 'addons')
-rw-r--r--addons/web/controllers/testing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py
index 0160f0f28cd..598270cfe54 100644
--- a/addons/web/controllers/testing.py
+++ b/addons/web/controllers/testing.py
@@ -89,7 +89,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 +114,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