web/test/unittest_application.py
branchstable
changeset 8650 9a6e80bfad9d
parent 8312 6c2119509fac
child 8655 ab57000bff7b
equal deleted inserted replaced
8649:8fbb2f65721e 8650:9a6e80bfad9d
   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']