Browse Source

Unittest celeryconfig: Removed BROKER_* settings and set queue to "testcelery"

Ask Solem 15 năm trước cách đây
mục cha
commit
117a17e1e5
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      tests/celeryconfig.py

+ 6 - 5
tests/celeryconfig.py

@@ -1,16 +1,17 @@
 import atexit
 
-BROKER_HOST = "localhost"
-BROKER_PORT = 5672
-BROKER_USER = "guest"
-BROKER_PASSWORD = "guest"
-BROKER_VHOST = "/"
 CARROT_BACKEND = "memory"
 
+
 CELERY_RESULT_BACKEND = "database"
 CELERY_RESULT_DBURI = "sqlite:///test.db"
 CELERY_SEND_TASK_ERROR_EMAILS = False
 
+CELERY_DEFAULT_QUEUE = "testcelery"
+CELERY_DEFAULT_EXCHANGE = "testcelery"
+CELERY_DEFAULT_ROUTING_KEY = "testcelery"
+CELERY_QUEUES = {"testcelery": {"binding_key": "testcelery"}}
+
 @atexit.register
 def teardown_testdb():
     import os