-
Notifications
You must be signed in to change notification settings - Fork 125
fix: CI test assertions for Rich line-wrapping and scope output #510
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -818,7 +818,9 @@ def test_global_rejects_local_path_package(self): | |
| ) | ||
|
|
||
| # Should fail with clear message about local packages | ||
| assert "local packages are not supported at user scope" in result.output | ||
| # Use shorter substring to tolerate Rich word-wrapping on | ||
| # platforms with long temp paths (Windows). | ||
| assert "not supported at user scope" in result.output | ||
|
Comment on lines
820
to
+823
|
||
| # Should suggest using remote reference | ||
| assert "owner/repo" in result.output | ||
| finally: | ||
|
|
@@ -840,7 +842,7 @@ def test_global_rejects_absolute_local_path(self): | |
| cli, ["install", "--global", str(local_pkg)] | ||
| ) | ||
|
|
||
| assert "local packages are not supported at user scope" in result.output | ||
| assert "not supported at user scope" in result.output | ||
| finally: | ||
| os.chdir(self.original_dir) | ||
|
|
||
|
|
@@ -857,6 +859,6 @@ def test_global_rejects_tilde_local_path(self): | |
| cli, ["install", "--global", "~/some-pkg"] | ||
| ) | ||
|
|
||
| assert "local packages are not supported at user scope" in result.output | ||
| assert "not supported at user scope" in result.output | ||
| finally: | ||
| os.chdir(self.original_dir) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script contains non-ASCII characters (em dash in comments, and emoji symbols in log_* output). Repository guideline requires shell scripts to stay within printable ASCII to avoid Windows cp1252 encoding errors. Please replace the emoji/status glyphs with the ASCII bracket status symbols (e.g.,
[i],[+],[x]) and use a plain-instead of an em dash.