diff -r 58c519e5a31f -r b2530e3e0afb server/test/unittest_hooksmanager.py --- a/server/test/unittest_hooksmanager.py Tue Aug 11 17:04:59 2009 +0200 +++ b/server/test/unittest_hooksmanager.py Tue Aug 11 17:13:32 2009 +0200 @@ -6,7 +6,7 @@ from cubicweb.server.hooksmanager import HooksManager, Hook from cubicweb.devtools import TestServerConfiguration -from cubicweb.devtools.apptest import RepositoryBasedTC +from cubicweb.devtools.testlib import CubicWebTC class HookCalled(Exception): pass @@ -144,7 +144,7 @@ self.called.append((subject, r_type, object)) -class SystemHooksTC(RepositoryBasedTC): +class SystemHooksTC(CubicWebTC): def test_startup_shutdown(self): import hooks # cubicweb/server/test/data/hooks.py @@ -168,7 +168,7 @@ events = ('whatever', 'another') accepts = ('Societe', 'Division') -class HookTC(RepositoryBasedTC): +class HookTC(CubicWebTC): def test_inheritance(self): self.assertEquals(list(MyHook.register_to()), zip(repeat('whatever'), ('Societe', 'Division', 'SubDivision'))