config.py 474 B

12345678910111213141516171819202122
  1. import atexit
  2. import os
  3. broker_url = os.environ.get('BROKER_URL') or 'amqp://'
  4. result_backend = 'amqp://'
  5. send_task_error_emails = False
  6. default_queue = 'testcelery'
  7. default_exchange = 'testcelery'
  8. default_routing_key = 'testcelery'
  9. queues = {'testcelery': {'routing_key': 'testcelery'}}
  10. log_color = False
  11. 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')