perf(test): optimize pypi add tests#5048
Merged
baszalmstra merged 1 commit intoprefix-dev:mainfrom Dec 3, 2025
Merged
Conversation
2b6bc71 to
e90e1a3
Compare
Hofer-Julian
approved these changes
Dec 3, 2025
Use local PyPI index, conda channel, and git fixtures instead of network calls for add_pypi_functionality and add_pypi_extra_functionality tests. - add_pypi_functionality: ~85s -> ~5s - add_pypi_extra_functionality: ~72s -> ~0.4s Add pypi-boltons, pypi-httpx, pypi-isort git fixtures for testing PyPI git dependencies locally.
e90e1a3 to
c90e328
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Optimizes two slow PyPI add integration tests by using local mocks instead of network calls.
Performance improvements:
add_pypi_functionalityadd_pypi_extra_functionalityThis PR builds on top of #5047
How Has This Been Tested?
Both tests pass in ~5 seconds total.
AI Disclosure
Tools: Claude Code
Checklist:
schema/model.py.