Skip to content

Commit 74d2603

Browse files
committed
Merge branch 'potel-base' into potel-base-run-all-tests
2 parents de89a71 + 7c70b9c commit 74d2603

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_scope.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use_isolation_scope,
2222
setup_scope_context_management,
2323
)
24+
from tests.conftest import ApproxDict
2425

2526

2627
@pytest.fixture(autouse=True)
@@ -800,8 +801,8 @@ def test_nested_scopes_with_tags(sentry_init, capture_envelopes):
800801
transaction = envelope.items[0].get_transaction_event()
801802

802803
assert transaction["tags"] == {"isolation_scope1": 1, "current_scope2": 1, "trx": 1}
803-
assert transaction["spans"][0]["tags"] == {"a": 1}
804-
assert transaction["spans"][1]["tags"] == {"b": 1}
804+
assert transaction["spans"][0]["tags"] == ApproxDict({"a": 1})
805+
assert transaction["spans"][1]["tags"] == ApproxDict({"b": 1})
805806

806807

807808
def test_should_send_default_pii_true(sentry_init):

0 commit comments

Comments
 (0)