devtools/testlib.py
changeset 4958 665eacdd8c50
parent 4917 756ded5bc9eb
child 5004 4cc020ee70e2
child 5020 30a539c2074d
equal deleted inserted replaced
4957:25f20adba80f 4958:665eacdd8c50
   205 
   205 
   206     @classmethod
   206     @classmethod
   207     def _build_repo(cls):
   207     def _build_repo(cls):
   208         cls.repo, cls.cnx = devtools.init_test_database(config=cls.config)
   208         cls.repo, cls.cnx = devtools.init_test_database(config=cls.config)
   209         cls.init_config(cls.config)
   209         cls.init_config(cls.config)
       
   210         cls.repo.hm.call_hooks('server_startup', repo=cls.repo)
   210         cls.vreg = cls.repo.vreg
   211         cls.vreg = cls.repo.vreg
   211         cls._orig_cnx = cls.cnx
   212         cls._orig_cnx = cls.cnx
   212         cls.config.repository = lambda x=None: cls.repo
   213         cls.config.repository = lambda x=None: cls.repo
   213         # necessary for authentication tests
   214         # necessary for authentication tests
   214         cls.cnx.login = cls.admlogin
   215         cls.cnx.login = cls.admlogin