Skip to content

Commit f2ce180

Browse files
committed
Fix starlette status tests
1 parent 0b264d8 commit f2ce180

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integrations/starlette/test_starlette.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
StarletteRequestExtractor,
1919
)
2020
from sentry_sdk.utils import parse_version
21+
from tests.conftest import ApproxDict
2122

2223
import starlette
2324
from starlette.authentication import (
@@ -765,7 +766,7 @@ def test_middleware_callback_spans(sentry_init, capture_events):
765766
for span in transaction_event["spans"]:
766767
assert span["op"] == expected[idx]["op"]
767768
assert span["description"] == expected[idx]["description"]
768-
assert span["tags"] == expected[idx]["tags"]
769+
assert span["tags"] == ApproxDict(expected[idx]["tags"])
769770
idx += 1
770771

771772

@@ -856,7 +857,7 @@ def test_middleware_partial_receive_send(sentry_init, capture_events):
856857
for span in transaction_event["spans"]:
857858
assert span["op"] == expected[idx]["op"]
858859
assert span["description"].startswith(expected[idx]["description"])
859-
assert span["tags"] == expected[idx]["tags"]
860+
assert span["tags"] == ApproxDict(expected[idx]["tags"])
860861
idx += 1
861862

862863

0 commit comments

Comments
 (0)