File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,11 @@ async def test_capture_transaction_with_error(
165
165
DictionaryContaining , # noqa: N803
166
166
):
167
167
sentry_init (send_default_pii = True , traces_sample_rate = 1.0 )
168
- events = capture_events ()
169
168
app = SentryAsgiMiddleware (asgi3_app_with_error )
170
169
171
170
with pytest .raises (ZeroDivisionError ):
172
171
async with TestClient (app ) as client :
172
+ events = capture_events ()
173
173
await client .get ("/" )
174
174
175
175
(error_event , transaction_event ) = events
@@ -419,8 +419,8 @@ async def test_transaction_style(
419
419
"client" : ("127.0.0.1" , 60457 ),
420
420
}
421
421
422
- events = capture_events ()
423
422
async with TestClient (app , scope = scope ) as client :
423
+ events = capture_events ()
424
424
await client .get (url )
425
425
426
426
(_ , transaction_event ) = events
You can’t perform that action at this time.
0 commit comments