[FIX] test controller

bzr revid: xmo@openerp.com-20140123124250-ek1g3a0ucuhtsgqv
This commit is contained in:
Xavier Morel
2014-01-23 13:42:50 +01:00
parent e40646d98d
commit 84d8cde6fe
+2 -2
View File
@@ -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