Skip to content

Commit 71e074b

Browse files
committed
test(shell): pin unicode glyphs in welcome width-matrix test
The matrix test asserts the robot mark ("▛") renders at every width but relied on the ambient glyph mode; pin ascii_glyphs_enabled to False so the assertion is deterministic regardless of locale/stdout encoding, matching test_welcome_two_column_layout_when_wide.
1 parent 9e3950c commit 71e074b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/ui_and_conv/test_shell_welcome_info.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def test_welcome_banner_layout_width_matrix(monkeypatch):
123123
from pythinker_code.ui.shell.components.render_utils import cell_width
124124

125125
monkeypatch.setattr(shell_module, "get_version", lambda: "9.9.9")
126+
# Pin Unicode glyph rendering so the robot-mark assertion below is
127+
# deterministic regardless of the ambient locale/stdout encoding.
128+
monkeypatch.setattr(shell_module, "ascii_glyphs_enabled", lambda: False)
126129
items = [
127130
WelcomeInfoItem(name="Directory", value="/home/ai/Projects/pythinker-code-main"),
128131
WelcomeInfoItem(name="Model", value="gpt-5.1-codex"),

0 commit comments

Comments
 (0)