File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/integrations/celery/integration_tests Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from tests .integrations .celery .integration_tests import run_beat
9
9
10
+ import logging
11
+ loggg = logging .getLogger (__name__ )
10
12
11
13
@pytest .fixture ()
12
14
def celery_config ():
13
15
return {
14
- "broker_url" : "redis://127.0.0.1:6379/14 " ,
16
+ "broker_url" : "redis://127.0.0.1:6379/15 " ,
15
17
"result_backend" : "redis://127.0.0.1:6379/15" ,
16
18
"task_always_eager" : False ,
17
19
"worker_concurrency" : 1 ,
18
20
"beat_scheduler" : "tests.integrations.celery.integration_tests:ImmediateScheduler" ,
19
21
"task_create_missing_queues" : True ,
20
- "task_routes " : { "*" : { "queue" : f"queue_{ os .getpid ()} " }} ,
22
+ "task_default_queue " : f"queue_{ os .getpid ()} " ,
21
23
}
22
24
23
25
@@ -97,8 +99,8 @@ def test_task():
97
99
with start_worker (app , perform_ping_check = False ):
98
100
run_beat (app )
99
101
100
- assert len ( envelopes ) == 2
101
- ( envelop_in_progress , envelope_error ) = envelopes
102
+ envelop_in_progress = envelopes [ 0 ]
103
+ envelope_error = envelopes [ - 1 ]
102
104
103
105
check_in = envelop_in_progress .items [0 ].payload .json
104
106
assert check_in ["type" ] == "check_in"
You can’t perform that action at this time.
0 commit comments