Skip to content

Conversation

@ichard26
Copy link
Member

@ichard26 ichard26 commented Jul 15, 2025

This will make it easier to write tests that exclusively use local test data (and don't use the Internet). I've converted over a handful of tests to demonstrate what the new helper look like in practice, but I don't plan on mass converting all applicable tests since that would a lot of work for not much gain.

My next step would be to inspect all of the tests currently marked as requiring the network (after #13481 is merged) and rewrite as many as possible to use local test data exclusively instead.

Towards #13707.

@ichard26 ichard26 added C: tests Testing and related things type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Jul 15, 2025
@ichard26
Copy link
Member Author

Aha, actually, data.find() is likely unnecessary as TestData already supports something like data.src / "project" and data.packages / "simple". Will update the PR when I get the chance to.

@ichard26 ichard26 changed the title test: Add data.find() and extend pip_install_local() helpers test: Extend pip_install_local() test helper Jul 18, 2025
@ichard26 ichard26 marked this pull request as ready for review July 18, 2025 19:40
@ichard26 ichard26 enabled auto-merge December 20, 2025 19:12
@ichard26 ichard26 merged commit 812f481 into pypa:main Dec 20, 2025
28 checks passed
@ichard26 ichard26 deleted the tests/helpers-2 branch December 20, 2025 19:18
ichard26 added a commit to ichard26/pip that referenced this pull request Dec 20, 2025
test: Extend pip_install_local() test helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: tests Testing and related things 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.

1 participant