Skip to content

Commit

Permalink
Refresh PyPI response mocks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeffwidman committed Aug 1, 2023
1 parent efc538c commit 7f59dbb
Show file tree
Hide file tree
Showing 5 changed files with 14,220 additions and 6,285 deletions.
2,457 changes: 1,836 additions & 621 deletions python/spec/fixtures/pypi/pypi_response.json

Large diffs are not rendered by default.

Loading

0 comments on commit 7f59dbb

Please sign in to comment.