equal
deleted
inserted
replaced
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 |