requests-cache / aiohttp-client-cache

An async persistent cache for aiohttp requests
MIT License
121 stars 21 forks source link

Close database connections (if applicable) on CachedSession.__aexit__ #148

Closed JWCook closed 1 year ago

JWCook commented 1 year ago

(hopefully) fixes #147

codecov[bot] commented 1 year ago

Codecov Report

Merging #148 (9384f00) into main (8ce6165) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   95.13%   95.15%   +0.01%     
==========================================
  Files          11       11              
  Lines        1008     1012       +4     
  Branches      180      180              
==========================================
+ Hits          959      963       +4     
  Misses         34       34              
  Partials       15       15              
Impacted Files Coverage Δ
aiohttp_client_cache/backends/sqlite.py 99.10% <ø> (-0.02%) :arrow_down:
aiohttp_client_cache/backends/base.py 96.62% <100.00%> (+0.05%) :arrow_up:
aiohttp_client_cache/session.py 91.11% <100.00%> (+0.63%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.