Skip to content

fix(Litestar): Apply failed_request_status_codes to exceptions raised in middleware - #4074

Merged
sentrivana merged 22 commits into
getsentry:masterfrom
vrslev:fix-litestar-middleware-failed-request-status-codes
Jun 25, 2025
Merged

fix(Litestar): Apply failed_request_status_codes to exceptions raised in middleware#4074
sentrivana merged 22 commits into
getsentry:masterfrom
vrslev:fix-litestar-middleware-failed-request-status-codes

Add more asserts to newly added test

2158823
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Codecov / codecov/project succeeded Jun 25, 2025 in 0s

80.64% (-0.03%) compared to c2d5a76

View this Pull Request on Codecov

80.64% (-0.03%) compared to c2d5a76

Details

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (c2d5a76) to head (2158823).
Report is 25 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4074      +/-   ##
==========================================
- Coverage   80.67%   80.64%   -0.03%     
==========================================
  Files         142      142              
  Lines       15982    15988       +6     
  Branches     2729     2729              
==========================================
+ Hits        12893    12894       +1     
- Misses       2232     2238       +6     
+ Partials      857      856       -1     
Files with missing lines Coverage Δ
sentry_sdk/integrations/asgi.py 86.30% <100.00%> (+0.38%) ⬆️
sentry_sdk/integrations/litestar.py 84.86% <100.00%> (+0.20%) ⬆️

... and 5 files with indirect coverage changes