comparison pylons_app/config/environment.py @ 459:7c978511c951

implemented basic (startup) nose test suite.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Sep 2010 16:20:29 +0200
parents 3bcf9529d221
children e94f4e54dc03
comparison
equal deleted inserted replaced
458:00f883abdb0c 459:7c978511c951
50 #sets the c attribute access when don't existing attribute are accessed 50 #sets the c attribute access when don't existing attribute are accessed
51 config['pylons.strict_tmpl_context'] = True 51 config['pylons.strict_tmpl_context'] = True
52 52
53 #MULTIPLE DB configs 53 #MULTIPLE DB configs
54 # Setup the SQLAlchemy database engine 54 # Setup the SQLAlchemy database engine
55 if config['debug']: 55 if config['debug'] and os.path.split(config['__file__'])[-1] != 'tests.ini':
56 #use query time debugging. 56 #use query time debugging.
57 from pylons_app.lib.timerproxy import TimerProxy 57 from pylons_app.lib.timerproxy import TimerProxy
58 sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.', 58 sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.',
59 proxy=TimerProxy()) 59 proxy=TimerProxy())
60 else: 60 else: