Mercurial > kallithea
comparison pylons_app/config/environment.py @ 491:fefffd6fd5f4 celery
Added some more tests, rewrite testing schema, to autogenerate fresh db, new index.
cleaned up some codes that involves testing.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 21 Sep 2010 01:08:01 +0200 |
parents | 6b934c9607e7 |
children |
comparison
equal
deleted
inserted
replaced
490:74b9bed279ae | 491:fefffd6fd5f4 |
---|---|
49 | 49 |
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 test = os.path.split(config['__file__'])[-1] == 'test.ini' | 52 test = os.path.split(config['__file__'])[-1] == 'test.ini' |
53 if test: | 53 if test: |
54 from pylons_app.lib.utils import make_test_env | 54 from pylons_app.lib.utils import create_test_env, create_test_index |
55 make_test_env() | 55 create_test_env('/tmp', config) |
56 create_test_index('/tmp/*', True) | |
57 | |
56 #MULTIPLE DB configs | 58 #MULTIPLE DB configs |
57 # Setup the SQLAlchemy database engine | 59 # Setup the SQLAlchemy database engine |
58 if config['debug'] and not test: | 60 if config['debug'] and not test: |
59 #use query time debugging. | 61 #use query time debugging. |
60 from pylons_app.lib.timerproxy import TimerProxy | 62 from pylons_app.lib.timerproxy import TimerProxy |