equal
deleted
inserted
replaced
257 def _build_repo(cls): |
257 def _build_repo(cls): |
258 cls.repo, cls.cnx = devtools.init_test_database(config=cls.config) |
258 cls.repo, cls.cnx = devtools.init_test_database(config=cls.config) |
259 cls.init_config(cls.config) |
259 cls.init_config(cls.config) |
260 cls.repo.hm.call_hooks('server_startup', repo=cls.repo) |
260 cls.repo.hm.call_hooks('server_startup', repo=cls.repo) |
261 cls.vreg = cls.repo.vreg |
261 cls.vreg = cls.repo.vreg |
262 cls.websession = DBAPISession(cls.cnx, cls.admlogin, |
262 cls.websession = DBAPISession(cls.cnx, cls.admlogin) |
263 {'password': cls.admpassword}) |
|
264 cls._orig_cnx = (cls.cnx, cls.websession) |
263 cls._orig_cnx = (cls.cnx, cls.websession) |
265 cls.config.repository = lambda x=None: cls.repo |
264 cls.config.repository = lambda x=None: cls.repo |
266 |
265 |
267 @classmethod |
266 @classmethod |
268 def _refresh_repo(cls): |
267 def _refresh_repo(cls): |