config.py 532 B

12345678910111213141516171819202122
  1. import atexit
  2. import os
  3. BROKER_URL = os.environ.get('BROKER_URL') or 'amqp://'
  4. CELERY_RESULT_BACKEND = 'amqp://'
  5. CELERY_SEND_TASK_ERROR_EMAILS = False
  6. CELERY_DEFAULT_QUEUE = 'testcelery'
  7. CELERY_DEFAULT_EXCHANGE = 'testcelery'
  8. CELERY_DEFAULT_ROUTING_KEY = 'testcelery'
  9. CELERY_QUEUES = {'testcelery': {'routing_key': 'testcelery'}}
  10. CELERYD_LOG_COLOR = False
  11. CELERY_IMPORTS = ('celery.tests.functional.tasks', )
  12. @atexit.register
  13. def teardown_testdb():
  14. import os
  15. if os.path.exists('test.db'):
  16. os.remove('test.db')