canonical / pylxd

Python module for LXD
https://pylxd.readthedocs.io/en/latest/
Apache License 2.0
251 stars 133 forks source link

Extract get_session_for_url from Client.__init__ #535

Closed sparkiegeek closed 1 year ago

sparkiegeek commented 1 year ago

This (really) allows callers to customise the session before it's used.

Follow-on from #533. Fixes #360

codecov-commenter commented 1 year ago

Codecov Report

Merging #535 (9c3dc31) into master (4e39f9c) will increase coverage by 0.00%. The diff coverage is 97.72%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master     #535   +/-   ##
=======================================
  Coverage   97.42%   97.43%           
=======================================
  Files          56       56           
  Lines        4236     4251   +15     
=======================================
+ Hits         4127     4142   +15     
  Misses        109      109           
Impacted Files Coverage Δ
pylxd/client.py 90.17% <92.30%> (+0.08%) :arrow_up:
pylxd/tests/test_client.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more