File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
tests/integrations/celery Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 77from celery .bin import worker
88
99import sentry_sdk
10- from sentry_sdk import start_transaction , get_current_span
10+ from sentry_sdk import get_current_span
1111from sentry_sdk .integrations .celery import (
1212 CeleryIntegration ,
1313 _wrap_task_run ,
@@ -220,16 +220,12 @@ def dummy_task(x, y):
220220 assert execution_event ["contexts" ]["trace" ]["status" ] == "ok"
221221
222222 assert len (execution_event ["spans" ]) == 1
223- assert (
224- execution_event ["spans" ][0 ].items ()
225- >= {
226- "trace_id" : str (span .trace_id ),
227- "same_process_as_parent" : True ,
228- "op" : "queue.process" ,
229- "description" : "dummy_task" ,
230- "data" : ApproxDict (),
231- }.items ()
232- )
223+ assert execution_event ["spans" ][0 ] == ApproxDict ({
224+ "trace_id" : str (span .trace_id ),
225+ "same_process_as_parent" : True ,
226+ "op" : "queue.process" ,
227+ "description" : "dummy_task" ,
228+ })
233229 assert submission_event ["spans" ] == [
234230 {
235231 "data" : ApproxDict (),
You can’t perform that action at this time.
0 commit comments