imobanco / bb-wrapper

https://pypi.org/project/bb-wrapper/
GNU General Public License v3.0
8 stars 1 forks source link

Adiciona timeout nas requisições #49

Closed brenomfviana closed 2 years ago

brenomfviana commented 2 years ago

Resumo

Relacionado aos issues/prs:

Este PR adiciona timeout como parâmetro nas requisições da lib.

Alterações de models

Alterações de services

Alterações de wrappers

Os métodos de requisições em RequestsWrapper agora recebem o timeout nos parâmetros.

codecov[bot] commented 2 years ago

Codecov Report

Merging #49 (ea7961e) into main (c58783c) will increase coverage by 0.01%. The diff coverage is 66.66%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/graphs/tree.svg?width=650&height=150&src=pr&token=xAQaCbhGUv&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco)](https://codecov.io/gh/imobanco/bb-wrapper/pull/49?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco) ```diff @@ Coverage Diff @@ ## main #49 +/- ## ========================================== + Coverage 88.06% 88.08% +0.01% ========================================== Files 23 23 Lines 989 990 +1 ========================================== + Hits 871 872 +1 Misses 118 118 ``` | [Impacted Files](https://codecov.io/gh/imobanco/bb-wrapper/pull/49?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco) | Coverage Δ | | |---|---|---| | [bb\_wrapper/constants.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci9jb25zdGFudHMucHk=) | `100.00% <ø> (ø)` | | | [bb\_wrapper/wrapper/cobrancas.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL2NvYnJhbmNhcy5weQ==) | `70.00% <ø> (ø)` | | | [bb\_wrapper/wrapper/request.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL3JlcXVlc3QucHk=) | `73.80% <62.50%> (+0.31%)` | :arrow_up: | | [bb\_wrapper/wrapper/bb.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL2JiLnB5) | `92.74% <100.00%> (ø)` | | | [Impacted Files](https://codecov.io/gh/imobanco/bb-wrapper/pull/49?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco) | Coverage Δ | | |---|---|---| | [bb\_wrapper/constants.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci9jb25zdGFudHMucHk=) | `100.00% <ø> (ø)` | | | [bb\_wrapper/wrapper/cobrancas.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL2NvYnJhbmNhcy5weQ==) | `70.00% <ø> (ø)` | | | [bb\_wrapper/wrapper/request.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL3JlcXVlc3QucHk=) | `73.80% <62.50%> (+0.31%)` | :arrow_up: | | [bb\_wrapper/wrapper/bb.py](https://codecov.io/gh/imobanco/bb-wrapper/pull/49/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imobanco#diff-YmJfd3JhcHBlci93cmFwcGVyL2JiLnB5) | `92.74% <100.00%> (ø)` | |