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

Refresh PyPI response mocks #7682

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Refresh PyPI response mocks #7682

wants to merge 1 commit into from

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Aug 1, 2023

Our PyPI mocks were originally created in 2017 before they replaced the back end with Warehouse, which was a complete rewrite:

Ever since I realized this, I've felt a bit nervous about our tests.

Warehouse has mostly retained backwards compatibility in their APIs, but there were a few small changes, and also new fields.

So here I simply refreshed the mock by pulling up the current response from PyPI, then updated any unit tests that needed fixing.

While working on this, I noticed that the raw simple API that returns HTML is now offered with a JSON schema, but migrating to that it out of scope of this PR.

Fix: #5723

Our PyPI mocks were originally created in 2017 before they replaced the
back end with Warehouse, which was a complete rewrite:

* https://github.com/dependabot/dependabot-core/commits/697d7f90fc0bf97c1c9d6004de7e8629483a101a/spec/fixtures/python/pypi_simple_response.html?browsing_rename_history=true&new_path=python/spec/fixtures/pypi/pypi_simple_response.html&original_branch=main
* https://pyfound.blogspot.com/2018/03/warehouse-all-new-pypi-is-now-in-beta.html

Ever since I realized this, I've felt a bit nervous about our tests.

Warehouse has mostly retained backwards compatibility in their APIs, but
there were a few small changes, and also new fields.

So here I simply refreshed the mock by pulling up the current response
from PyPI, then updated any unit tests that needed fixing.

While working on this, I noticed that the raw `simple` API that returns
HTML is now offered with a JSON schema, but migrating to that it out of
scope of this PR.
@jeffwidman jeffwidman force-pushed the update-pypi-responses branch from 7f59dbb to 10b3c0e Compare August 18, 2023 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to update python fixtures to reflect new Warehouse API responses
1 participant