equal
deleted
inserted
replaced
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 |