Skip to content

Commit

Permalink
!squash more test_options
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 5, 2024
1 parent 574a605 commit c7b6931
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,33 @@ class OptionDataclassTestFixture(t.NamedTuple):
"xterm*": ["clipboard", "ccolour", "cstyle", "focus"],
},
),
OptionDataclassTestFixture(
test_id="command-alias",
option_data=textwrap.dedent(
"""
command-alias[0] split-pane=split-window
command-alias[1] splitp=split-window
command-alias[2] "server-info=show-messages -JT"
command-alias[3] "info=show-messages -JT"
command-alias[4] "choose-window=choose-tree -w"
command-alias[5] "choose-session=choose-tree -s"
""",
)
.strip()
.split("\n"),
dataclass_attribute="command_alias",
tmux_option="command-alias",
expected=TmuxArray(
{
"split-pane": "split-window",
"splitp": "split-window",
"server-info": "show-messages -JT",
"info": "show-messages -JT",
"choose-window": "choose-tree -w",
"choose-session": "choose-tree -s",
},
),
),
]


Expand Down

0 comments on commit c7b6931

Please sign in to comment.