cubicweb/server/test/unittest_hook.py
changeset 12514 eac7f5b20f9f
parent 12513 6f42f1460f99
equal deleted inserted replaced
12513:6f42f1460f99 12514:eac7f5b20f9f
    27 from cubicweb.server import hook
    27 from cubicweb.server import hook
    28 from cubicweb.hooks import integrity, syncschema
    28 from cubicweb.hooks import integrity, syncschema
    29 
    29 
    30 
    30 
    31 class OperationsTC(CubicWebTC):
    31 class OperationsTC(CubicWebTC):
    32 
       
    33     def setUp(self):
       
    34         CubicWebTC.setUp(self)
       
    35         self.hm = self.repo.hm
       
    36 
    32 
    37     def test_late_operation(self):
    33     def test_late_operation(self):
    38         with self.admin_access.repo_cnx() as cnx:
    34         with self.admin_access.repo_cnx() as cnx:
    39             l1 = hook.LateOperation(cnx)
    35             l1 = hook.LateOperation(cnx)
    40             l2 = hook.LateOperation(cnx)
    36             l2 = hook.LateOperation(cnx)