File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 44* .db
55* .pid
66.python-version
7+ .tool-versions
78.coverage
89.coverage-sentry *
910coverage.xml
Original file line number Diff line number Diff line change 55
66from sentry_sdk import capture_message
77from sentry_sdk .integrations .litestar import LitestarIntegration
8+ from tests .conftest import ApproxDict
89
910from 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 (
Original file line number Diff line number Diff line change 55
66from sentry_sdk import capture_message
77from sentry_sdk .integrations .starlite import StarliteIntegration
8+ from tests .conftest import ApproxDict
89
910from typing import Any , Dict
1011
@@ -199,7 +200,7 @@ def is_matching_span(expected_span, actual_span):
199200 return (
200201 expected_span ["op" ] == actual_span ["op" ]
201202 and expected_span ["description" ] == actual_span ["description" ]
202- and expected_span ["tags" ] == actual_span ["tags" ]
203+ and ApproxDict ( expected_span ["tags" ]) == actual_span ["tags" ]
203204 )
204205
205206 actual_starlite_spans = list (
@@ -295,7 +296,7 @@ def is_matching_span(expected_span, actual_span):
295296 return (
296297 expected_span ["op" ] == actual_span ["op" ]
297298 and actual_span ["description" ].startswith (expected_span ["description" ])
298- and expected_span ["tags" ] == actual_span ["tags" ]
299+ and ApproxDict ( expected_span ["tags" ]) == actual_span ["tags" ]
299300 )
300301
301302 actual_starlite_spans = list (
You can’t perform that action at this time.
0 commit comments