[FIX] ensure_db() for /web/tests should fix tests

bzr revid: fme@openerp.com-20140425154529-mmo20479tkqzfnm0
This commit is contained in:
Fabien Meghazi 2014-04-25 17:45:29 +02:00
parent 292e2a5400
commit 8f90b2fcbc
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import os
from mako.template import Template
from openerp.modules import module
from openerp import http
from openerp.addons.web.controllers.main import ensure_db
from openerp.http import request
from .main import module_topological_sort
@ -90,6 +91,7 @@ class TestRunnerController(http.Controller):
@http.route('/web/tests', type='http', auth="none")
def index(self, mod=None, **kwargs):
ensure_db()
ms = module.get_modules()
manifests = dict(
(name, desc)