diff 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
line wrap: on
line diff
--- a/pylons_app/config/environment.py	Sun Sep 05 13:55:47 2010 +0200
+++ b/pylons_app/config/environment.py	Sun Sep 05 16:20:29 2010 +0200
@@ -52,7 +52,7 @@
     
     #MULTIPLE DB configs
     # Setup the SQLAlchemy database engine
-    if config['debug']:
+    if config['debug'] and os.path.split(config['__file__'])[-1] != 'tests.ini':
         #use query time debugging.
         from pylons_app.lib.timerproxy import TimerProxy
         sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.',