Skip to content

Commit 3ccf743

Browse files
committed
fix(tests): set correct min_version for hooks and options
why: CI fails on tmux 3.0a because some hooks/options don't exist in that version what: - client-focus-in, client-focus-out, client-active: require tmux 3.3+ - window-resized: requires tmux 3.3+ - editor option: requires tmux 3.2+ - prompt-history-limit option: requires tmux 3.3+
1 parent b34a7f1 commit 3ccf743

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/test_hooks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ class HookTestCase(t.NamedTuple):
332332

333333
# --- Client Hooks ---
334334
CLIENT_HOOKS: list[HookTestCase] = [
335-
HookTestCase("client_active", "client-active"),
335+
HookTestCase("client_active", "client-active", "3.3"),
336336
HookTestCase("client_attached", "client-attached"),
337337
HookTestCase("client_detached", "client-detached"),
338-
HookTestCase("client_focus_in", "client-focus-in"),
339-
HookTestCase("client_focus_out", "client-focus-out"),
338+
HookTestCase("client_focus_in", "client-focus-in", "3.3"),
339+
HookTestCase("client_focus_out", "client-focus-out", "3.3"),
340340
HookTestCase("client_resized", "client-resized"),
341341
HookTestCase("client_session_changed", "client-session-changed"),
342342
]
@@ -352,7 +352,7 @@ class HookTestCase(t.NamedTuple):
352352
WINDOW_HOOKS: list[HookTestCase] = [
353353
HookTestCase("window_linked", "window-linked"),
354354
HookTestCase("window_renamed", "window-renamed"),
355-
HookTestCase("window_resized", "window-resized"),
355+
HookTestCase("window_resized", "window-resized", "3.3"),
356356
HookTestCase("window_unlinked", "window-unlinked"),
357357
HookTestCase("session_window_changed", "session-window-changed"),
358358
]

tests/test_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ class OptionTestCase(t.NamedTuple):
728728
OptionScope.Server,
729729
50,
730730
int,
731+
"3.3",
731732
),
732733
]
733734

@@ -765,7 +766,7 @@ class OptionTestCase(t.NamedTuple):
765766
"screen-256color",
766767
str,
767768
),
768-
OptionTestCase("server_editor", "editor", OptionScope.Server, "vim", str),
769+
OptionTestCase("server_editor", "editor", OptionScope.Server, "vim", str, "3.2"),
769770
]
770771

771772
# --- Session Options ---

0 commit comments

Comments
 (0)