Skip to content

Commit 4f3b627

Browse files
committed
Better test output
1 parent 459cb0d commit 4f3b627

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tests/integrations/celery/test_celery.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from celery.bin import worker
88

99
import sentry_sdk
10-
from sentry_sdk import start_transaction, get_current_span
10+
from sentry_sdk import get_current_span
1111
from 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(),

0 commit comments

Comments
 (0)