Skip to content

Commit 8f7b0e4

Browse files
committed
fix(tests): handle bold→bright conversion in complex style test
tmux <3.2 normalizes 'bold' to 'bright' in style output. Added version guard to expect correct output format.
1 parent 9846ab6 commit 8f7b0e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_options.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,12 @@ def test_style_option_validation(server: Server) -> None:
605605
)
606606
style = session.show_option("status-style")
607607
assert isinstance(style, str)
608-
assert style == "fg=colour240,bg=#525252,bold,underscore"
608+
if has_gte_version("3.2"):
609+
# tmux 3.2+: literal string output
610+
assert style == "fg=colour240,bg=#525252,bold,underscore"
611+
else:
612+
# tmux <3.2: bold→bright
613+
assert style == "fg=colour240,bg=#525252,bright,underscore"
609614

610615
# Test style with variables
611616
session.set_option("status-style", "fg=#{?pane_in_mode,red,green}")

0 commit comments

Comments
 (0)