Closed illeatmyhat closed 3 years ago
Merging #84 (5bfaf47) into master (2dee018) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #84 +/- ##
=======================================
Coverage 98.19% 98.19%
=======================================
Files 18 18
Lines 665 666 +1
=======================================
+ Hits 653 654 +1
Misses 12 12
Impacted Files | Coverage Δ | |
---|---|---|
ibm_cloud_sdk_core/base_service.py | 95.15% <100.00%> (+0.02%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2dee018...5bfaf47. Read the comment docs.
@illeatmyhat Thank you for opening this PR. We'll try to get this reviewed and get you some feedback soon.
I botched this PR when trying to update it with master, I remade the PR here: https://github.com/IBM/python-sdk-core/pull/101 using your commit on my fork
Closes #83
Summary: Using a
requests.Session
object allows the client to apply flexible global configuration, i.e. exponential backoff retries, timeouts, proxies, etc. to every request using a Transport Adapter such asHTTPAdapter
.Usage:
An implementer service could also apply this in their
__init__()
function.Unfortunately I could not introduce a new test case, because the
responses
library does not support testing retries. https://github.com/getsentry/responses/issues/135