Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : Create Session object, over multiple requests.get #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackbayliss
Copy link

This addresses #341

In short, essentially the requests get() method creates a new Session object each time it's called. By creating a Session it'll only create one session object. Making it more efficient!

Tests:

----------------------------------------------------------------------
Ran 271 tests in 0.343s
OK

Added session over multiple sessions.
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #402 (193cc21) into master (56cfe8c) will increase coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #402   +/-   ##
=======================================
  Coverage   94.24%   94.24%           
=======================================
  Files          11       11           
  Lines        1164     1165    +1     
=======================================
+ Hits         1097     1098    +1     
  Misses         67       67           
Impacted Files Coverage Δ
pyup/requirements.py 88.49% <75.00%> (+0.03%) ⬆️
pyup/package.py 100.00% <100.00%> (ø)

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 56cfe8c...193cc21. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant