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

Make unpack_* unit tests into functional tests #7478

Merged

Conversation

chrahunt
Copy link
Member

Previously our http and file "download" tests were tightly coupled to the implementation. These have been replaced with higher-level tests so that we can change the implementation without losing any coverage.

Progresses #7049.

To be used in some upcoming tests.
This and the next several changes will uncouple the tests from the
current implementation, allowing us to factor the actual file download
out of `unpack_file_url` and `unpack_http_url`.
This makes the behavior of this function easier to test, since we can
use a different file to distinguish the already-downloaded case from the
existing-file-hash-failed case.
Reduces coupling between tests and code.
Reduces coupling between tests and code.
Reduces coupling between tests and code.
@chrahunt chrahunt added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Dec 14, 2019
@chrahunt chrahunt marked this pull request as ready for review December 14, 2019 02:14
@chrahunt
Copy link
Member Author

Gentle nudge. This is a prereq for extracting the file downloading from unpack_*.

@chrahunt chrahunt merged commit ab12706 into pypa:master Dec 16, 2019
@chrahunt chrahunt deleted the refactor/make-functional-download-tests branch December 16, 2019 23:55
@chrahunt
Copy link
Member Author

Thank you!

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jan 16, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants