Commit 3738f112 authored by Julien Cristau's avatar Julien Cristau
Browse files

[web/test] use real_error_handling context manager instead of open-coding it

parent f89c2f127897
......@@ -21,7 +21,7 @@ from functools import partial
from logilab.common.testlib import unittest_main
from cubicweb.devtools.testlib import CubicWebTC
from cubicweb.devtools.testlib import CubicWebTC, real_error_handling
from cubicweb import view
from cubicweb.predicates import is_instance
......@@ -136,11 +136,8 @@ class IDownloadableTC(CubicWebTC):
with self.admin_access.web_request() as req:
req.form['vid'] = 'download'
req.form['eid'] = str(req.execute('CWGroup X WHERE X name "managers"')[0][0])
errhdlr ='error_handler') # temporarily restore error handler
with real_error_handling(
data = self.app_handle_request(req)
finally: = errhdlr
get = req.headers_out.getRawHeaders
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment