server/test/unittest_hook.py
changeset 4766 162b2b127b15
parent 4252 6c4f109c2b03
child 4834 b718626a0e60
equal deleted inserted replaced
4764:ec9c20c6b9f7 4766:162b2b127b15
    66 class HookCalled(Exception): pass
    66 class HookCalled(Exception): pass
    67 
    67 
    68 config = TestServerConfiguration('data')
    68 config = TestServerConfiguration('data')
    69 config.bootstrap_cubes()
    69 config.bootstrap_cubes()
    70 schema = config.load_schema()
    70 schema = config.load_schema()
       
    71 
       
    72 def teardown_module(*args):
       
    73     global config, schema
       
    74     del config, schema
    71 
    75 
    72 class AddAnyHook(hook.Hook):
    76 class AddAnyHook(hook.Hook):
    73     __regid__ = 'addany'
    77     __regid__ = 'addany'
    74     category = 'cat1'
    78     category = 'cat1'
    75     events = ('before_add_entity',)
    79     events = ('before_add_entity',)