Skip to content

Commit

Permalink
Fix starlite approxdict
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py committed Nov 19, 2024
1 parent 0057c3e commit c8c205c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.db
*.pid
.python-version
.tool-versions
.coverage
.coverage-sentry*
coverage.xml
Expand Down
5 changes: 3 additions & 2 deletions tests/integrations/starlite/test_starlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from sentry_sdk import capture_message
from sentry_sdk.integrations.starlite import StarliteIntegration
from tests.conftest import ApproxDict

from typing import Any, Dict

Expand Down Expand Up @@ -199,7 +200,7 @@ def is_matching_span(expected_span, actual_span):
return (
expected_span["op"] == actual_span["op"]
and expected_span["description"] == actual_span["description"]
and expected_span["tags"] == actual_span["tags"]
and ApproxDict(expected_span["tags"]) == actual_span["tags"]
)

actual_starlite_spans = list(
Expand Down Expand Up @@ -295,7 +296,7 @@ def is_matching_span(expected_span, actual_span):
return (
expected_span["op"] == actual_span["op"]
and actual_span["description"].startswith(expected_span["description"])
and expected_span["tags"] == actual_span["tags"]
and ApproxDict(expected_span["tags"]) == actual_span["tags"]
)

actual_starlite_spans = list(
Expand Down

0 comments on commit c8c205c

Please sign in to comment.