web/test/unittest_application.py
changeset 8655 ab57000bff7b
parent 8544 3d049071957e
parent 8650 9a6e80bfad9d
child 8694 d901c36bcfce
equal deleted inserted replaced
8654:7021bba2dcf2 8655:ab57000bff7b
   152                           ['SET X works_for Y WHERE X eid 8, Y eid %s' % i
   152                           ['SET X works_for Y WHERE X eid 8, Y eid %s' % i
   153                            for i in (12, 13, 14)])
   153                            for i in (12, 13, 14)])
   154 
   154 
   155 
   155 
   156 class ApplicationTC(CubicWebTC):
   156 class ApplicationTC(CubicWebTC):
   157     def setUp(self):
       
   158         super(ApplicationTC, self).setUp()
       
   159         def raise_hdlr(*args, **kwargs):
       
   160             raise
       
   161         self.app.error_handler = raise_hdlr
       
   162 
   157 
   163     @classproperty
   158     @classproperty
   164     def config(cls):
   159     def config(cls):
   165         try:
   160         try:
   166             return cls.__dict__['_config']
   161             return cls.__dict__['_config']