Skip to content

Commit 0057c3e

Browse files
committed
Fix litestar approxdict
1 parent f261f28 commit 0057c3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integrations/litestar/test_litestar.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from sentry_sdk import capture_message
77
from sentry_sdk.integrations.litestar import LitestarIntegration
8+
from tests.conftest import ApproxDict
89

910
from typing import Any
1011

@@ -202,7 +203,7 @@ def is_matching_span(expected_span, actual_span):
202203
return (
203204
expected_span["op"] == actual_span["op"]
204205
and expected_span["description"] == actual_span["description"]
205-
and expected_span["tags"] == actual_span["tags"]
206+
and ApproxDict(expected_span["tags"]) == actual_span["tags"]
206207
)
207208

208209
actual_litestar_spans = list(
@@ -298,7 +299,7 @@ def is_matching_span(expected_span, actual_span):
298299
return (
299300
expected_span["op"] == actual_span["op"]
300301
and actual_span["description"].startswith(expected_span["description"])
301-
and expected_span["tags"] == actual_span["tags"]
302+
and ApproxDict(expected_span["tags"]) == actual_span["tags"]
302303
)
303304

304305
actual_litestar_spans = list(

0 commit comments

Comments
 (0)