devtools/testlib.py
changeset 6590 37b7f4df46b3
parent 6588 f8320a8c3c9d
parent 6589 47cd31fd206b
child 6631 26c303c3f1aa
equal deleted inserted replaced
6588:f8320a8c3c9d 6590:37b7f4df46b3
   197         Configuration is cached on the test class.
   197         Configuration is cached on the test class.
   198         """
   198         """
   199         try:
   199         try:
   200             return cls.__dict__['_config']
   200             return cls.__dict__['_config']
   201         except KeyError:
   201         except KeyError:
   202             home = join(dirname(sys.modules[self.__class__.__module__].__file__),
   202             home = join(dirname(sys.modules[cls.__module__].__file__), cls.appid)
   203                         cls.appid)
       
   204             config = cls._config = cls.configcls(cls.appid, apphome=home)
   203             config = cls._config = cls.configcls(cls.appid, apphome=home)
   205             config.mode = 'test'
   204             config.mode = 'test'
   206             return config
   205             return config
   207 
   206 
   208     @classmethod
   207     @classmethod