Skip to content

Commit c8c205c

Browse files
committed
Fix starlite approxdict
1 parent 0057c3e commit c8c205c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.db
55
*.pid
66
.python-version
7+
.tool-versions
78
.coverage
89
.coverage-sentry*
910
coverage.xml

tests/integrations/starlite/test_starlite.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.starlite import StarliteIntegration
8+
from tests.conftest import ApproxDict
89

910
from 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(

0 commit comments

Comments
 (0)