-
Couldn't load subscription status.
- Fork 3
Remove explicit dependency on a specific version of urllib3 #38
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
Conversation
…xture, and implement download test using responses
|
Just reviewed the diff, this looks great. |
|
Encountered a weird dependencies thing:
I've got no clue what was going on there, and I never got a warning about conflicts blocking something. Have I maybe misunderstood how to invoke pip to install those dev requirements? |
|
The correct command is |
|
OK - question about these tests using responses:
|
yup that was it, thanks. |
|
Ok looks like there are still vcr tests in test_all.py. |
How's this: ac12f0b |
Yes, the scope here is just to deal with urllib3. If we are happy with this approach the next PR will replace vcrpy with responses in a similar manner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the pinned urllib3 dependency and replaces legacy VCR-based tests with a new suite using responses for mocking the download API.
- Removed explicit
urllib3==1.26.20pin and updated dev dependencies. - Introduced
tests/test_sync.pywith comprehensive, fixtures-driven download tests leveragingresponses. - Deleted the legacy VCR-based
test_downloadintests/test_all.pyand documented static test data intests/data/README.md.
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Removed urllib3 pin; added responses to dev dependencies |
| tests/test_sync.py | New download tests using responses fixtures |
| tests/test_all.py | Removed VCR-based download test |
| tests/data/README.md | Added documentation for static zip test data |
| tests/data/.gitkeep | Ensures tests/data directory is tracked |
| tests/conftest.py | Added fixtures (mock_zip_data, mock_download_api, etc.) |
Comments suppressed due to low confidence (2)
tests/data/README.md:10
- [nitpick] This reference to the VCR cassette may be outdated now that tests use the static
download.v1.zip; consider updating or removing this line to accurately reflect current test data sources.
- Extracted from `tests/cassettes/download.v1.yaml`
tests/test_sync.py:16
- [nitpick] Several tests in this file duplicate the same download invocation and parameters; consider extracting the common call into a shared fixture or helper to reduce duplication and make updates easier.
zf = mano.sync.download(keyring,
Close #36, and toward #25 and #33