--- a/devtools/fake.py Tue May 05 08:41:19 2015 +0200
+++ b/devtools/fake.py Tue Jul 01 16:55:49 2014 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -20,6 +20,8 @@
__docformat__ = "restructuredtext en"
+from contextlib import contextmanager
+
from logilab.database import get_db_helper
from cubicweb.req import RequestSessionBase
@@ -159,6 +161,10 @@
# for use with enabled_security context manager
read_security = write_security = True
+ @contextmanager
+ def running_hooks_ops(self):
+ yield
+
class FakeRepo(object):
querier = None
def __init__(self, schema, vreg=None, config=None):