cubicweb/server/test/unittest_hook.py
changeset 12035 2fcb9339f69a
parent 12027 c62c80f20a82
child 12036 4c2c731f9190
--- a/cubicweb/server/test/unittest_hook.py	Fri Mar 10 16:55:57 2017 +0100
+++ b/cubicweb/server/test/unittest_hook.py	Fri Mar 10 17:03:28 2017 +0100
@@ -112,7 +112,7 @@
     def test_call_hook(self):
         self.o.register(AddAnyHook)
         dis = set()
-        cw = fake.FakeSession()
+        cw = fake.FakeConnection()
         cw.is_hook_activated = lambda cls: cls.category not in dis
         self.assertRaises(HookCalled,
                           self.o.call_hooks, 'before_add_entity', cw)