Mercurial > public > src > rhodecode
diff celeryconfig.py @ 581:53aa1ee1af86
updated tests for new version 6char password etc...
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Oct 2010 02:04:32 +0200 |
parents | d945c95ba4ac |
children | 72778dda34cf |
line wrap: on
line diff
--- a/celeryconfig.py Fri Oct 01 01:16:27 2010 +0200 +++ b/celeryconfig.py Fri Oct 01 02:04:32 2010 +0200 @@ -4,7 +4,7 @@ import ConfigParser root = os.getcwd() -PYLONS_CONFIG_NAME = 'production.ini' +PYLONS_CONFIG_NAME = 'test.ini' sys.path.append(root) config = ConfigParser.ConfigParser({'here':root}) @@ -40,6 +40,9 @@ #Tasks will never be sent to the queue, but executed locally instead. CELERY_ALWAYS_EAGER = False +if PYLONS_CONFIG_NAME == 'test.ini': + #auto eager for tests + CELERY_ALWAYS_EAGER = True #=============================================================================== # EMAIL SETTINGS