Skip to content

Commit d14dd90

Browse files
committed
Merge branch 'potel-base' into potel-base-run-all-tests
2 parents 064ef08 + c8c205c commit d14dd90

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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/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(

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)