devtools/testlib.py
changeset 6848 f87cd875c6db
parent 6806 8291f5e0c9f6
child 6967 07d889e3f35d
equal deleted inserted replaced
6847:c1d33aff7715 6848:f87cd875c6db
   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):