adriangb / xpresso

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

fix: initialize "app" scoped dependencies in the lifespan event #58

Closed adriangb closed 2 years ago

adriangb commented 2 years ago

Resolves https://github.com/adriangb/xpresso/pull/57/files#r801949751

codecov-commenter commented 2 years ago

Codecov Report

Merging #58 (e87ba04) into main (4ee047f) will decrease coverage by 0.05%. The diff coverage is 100.00%.

:exclamation: Current head e87ba04 differs from pull request most recent head 0891d47. Consider uploading reports for the commit 0891d47 to get more accurate results

@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   97.50%   97.44%   -0.06%     
==========================================
  Files         183      183              
  Lines        5764     5826      +62     
  Branches      681      693      +12     
==========================================
+ Hits         5620     5677      +57     
- Misses         98      103       +5     
  Partials       46       46              
Impacted Files Coverage Δ
tests/test_dependency_injection.py 100.00% <100.00%> (ø)
xpresso/applications.py 97.39% <100.00%> (+0.68%) :arrow_up:
tests/test_docs/advanced/test_websockets.py 92.00% <0.00%> (-8.00%) :arrow_down:
xpresso/binders/_body/extractors/discriminated.py 70.73% <0.00%> (-2.44%) :arrow_down:
xpresso/binders/_body/extractors/file.py 96.00% <0.00%> (-2.00%) :arrow_down:
xpresso/binders/_body/extractors/form.py 95.71% <0.00%> (-1.43%) :arrow_down: