We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa88148 commit 5a41fb8Copy full SHA for 5a41fb8
2 files changed
tests/sentry/fake_sentry_transport.py
@@ -13,5 +13,5 @@ class FakeSentryTransport:
13
def __init__(self):
14
self.events: list[sentry_sdk.types.Event] = []
15
16
- def __callable__(self, event: sentry_sdk.types.Event) -> None:
+ def __call__(self, event: sentry_sdk.types.Event) -> None:
17
self.events.append(event)
tests/sentry/test_interceptor.py
@@ -29,9 +29,7 @@ def transport() -> FakeSentryTransport:
29
def sentry_init(transport: FakeSentryTransport) -> None:
30
"""Initialize Sentry for testing."""
31
sentry_sdk.init(
32
- # Pass __callable__ explicitly so SDK treats it as Callable[[Event], None]
33
- # it confuses it otherwise
34
- transport=transport.__callable__,
+ transport=transport,
35
integrations=[
36
AsyncioIntegration(),
37
],
0 commit comments