diff 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
line wrap: on
line diff
--- a/pylons_app/config/environment.py	Mon Sep 20 22:55:55 2010 +0200
+++ b/pylons_app/config/environment.py	Tue Sep 21 01:08:01 2010 +0200
@@ -51,8 +51,10 @@
     config['pylons.strict_tmpl_context'] = True
     test = os.path.split(config['__file__'])[-1] == 'test.ini'
     if test:
-        from pylons_app.lib.utils import make_test_env
-        make_test_env()
+        from pylons_app.lib.utils import create_test_env, create_test_index
+        create_test_env('/tmp', config)
+        create_test_index('/tmp/*', True)
+        
     #MULTIPLE DB configs
     # Setup the SQLAlchemy database engine
     if config['debug'] and not test: