Skip to content

Commit ea3c43c

Browse files
cleanup
1 parent 322f5f8 commit ea3c43c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sentry_sdk/integrations/starlette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def _make_request_event_processor(req, integration):
573573
def event_processor(event, hint):
574574
# type: (Event, dict[str, Any]) -> Event
575575

576-
# Extract information from request
576+
# Add info from request to event
577577
request_info = event.get("request", {})
578578
if cookies:
579579
request_info["cookies"] = cookies

tests/integrations/fastapi/test_fastapi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def test_active_thread_id(sentry_init, capture_envelopes, teardown_profiling, en
223223
assert str(data["active"]) == trace_context["data"]["thread.id"]
224224

225225

226-
@pytest.mark.asyncio
227226
def test_request_body_not_cached_with_exception(sentry_init, capture_events):
228227
sentry_init(
229228
integrations=[StarletteIntegration(), FastApiIntegration()],
@@ -257,9 +256,7 @@ def test_request_body_cached_with_exception(sentry_init, capture_events):
257256
integrations=[StarletteIntegration(), FastApiIntegration()],
258257
)
259258

260-
app = FastAPI(debug=True)
261-
app.user_middleware = []
262-
app.middleware_stack = app.build_middleware_stack()
259+
app = FastAPI()
263260

264261
@app.post("/exception")
265262
async def _exception(request: Request):

0 commit comments

Comments
 (0)