-
Notifications
You must be signed in to change notification settings - Fork 10.5k
test: reduce registry manifest test repetition #3146
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
Merged
mnriem
merged 10 commits into
github:main
from
PascalThuet:chore/parallelize-integration-tests
Jul 6, 2026
+118
−54
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7acd7d2
test: isolate integration test home
PascalThuet 0167a0f
test: reduce registry manifest test repetition
PascalThuet ca07e0e
test: clarify disjoint-manifest order rationale and guard safe set
PascalThuet 5375034
test: rotate init coverage for manifest isolation
PascalThuet fbbb455
Merge origin/main into chore/parallelize-integration-tests
PascalThuet 2274a69
Merge origin/main into chore/integration-test-isolation
PascalThuet e1aaf47
test: assert integration home isolation
PascalThuet d67a9e5
Merge origin/main into chore/parallelize-integration-tests
PascalThuet ad6e352
test: guard multi-install manifest rotations
PascalThuet 292635b
Merge chore/integration-test-isolation into chore/parallelize-integra…
PascalThuet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| """Regression tests for integration-test environment isolation.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import os | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| def test_integration_tests_use_tmp_home(tmp_path: Path) -> None: | ||
| home = tmp_path / "home" | ||
|
|
||
| assert Path(os.environ["HOME"]) == home | ||
| assert Path(os.environ["USERPROFILE"]) == home | ||
| assert Path(os.environ["XDG_CACHE_HOME"]) == home / ".cache" | ||
| assert Path(os.environ["XDG_CONFIG_HOME"]) == home / ".config" | ||
| assert Path(os.environ["XDG_DATA_HOME"]) == home / ".local" / "share" | ||
|
|
||
| assert home.is_dir() | ||
| assert (home / ".cache").is_dir() | ||
| assert (home / ".config").is_dir() | ||
| assert (home / ".local" / "share").is_dir() |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.