adriangb / xpresso

A composable Python ASGI web framework
https://xpresso-api.dev/
MIT License
176 stars 4 forks source link

fix: dependencies that require contextvars being broken by BaseHTTPMiddleware #72

Closed adriangb closed 2 years ago

codecov-commenter commented 2 years ago

Codecov Report

Merging #72 (a51fed0) into main (8bd2473) will decrease coverage by 0.04%. The diff coverage is 93.90%.

@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   98.06%   98.01%   -0.05%     
==========================================
  Files         139      140       +1     
  Lines        4440     4484      +44     
  Branches      718      726       +8     
==========================================
+ Hits         4354     4395      +41     
- Misses         43       44       +1     
- Partials       43       45       +2     
Impacted Files Coverage Δ
xpresso/routing/websockets.py 85.71% <75.00%> (-5.96%) :arrow_down:
xpresso/routing/operation.py 96.87% <85.71%> (-3.13%) :arrow_down:
xpresso/applications.py 96.09% <92.30%> (-0.79%) :arrow_down:
tests/test_dependency_contextvars.py 100.00% <100.00%> (ø)
xpresso/_utils/asgi.py 100.00% <100.00%> (ø)
xpresso/middleware/exceptions.py 83.87% <100.00%> (+8.00%) :arrow_up:
xpresso/responses.py 100.00% <100.00%> (ø)