Skip to content

Commit 6c727f0

Browse files
committed
tests(test_builder) Remove tmux 2.3 conditionals
Remove conditional pane-border-format setup and assertion. The feature is always available since tmux 3.2+ is now the minimum version.
1 parent ed29395 commit 6c727f0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/workspace/test_builder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import libtmux
1313
import pytest
1414
from libtmux._internal.query_list import ObjectDoesNotExist
15-
from libtmux.common import has_gte_version, has_lt_version
15+
from libtmux.common import has_lt_version
1616
from libtmux.exc import LibTmuxException
1717
from libtmux.pane import Pane
1818
from libtmux.session import Session
@@ -296,8 +296,7 @@ def test_window_options(
296296
)
297297
workspace = loader.expand(workspace)
298298

299-
if has_gte_version("2.3"):
300-
workspace["windows"][0]["options"]["pane-border-format"] = " #P "
299+
workspace["windows"][0]["options"]["pane-border-format"] = " #P "
301300

302301
builder = WorkspaceBuilder(session_config=workspace, server=session.server)
303302

@@ -310,8 +309,7 @@ def test_window_options(
310309
assert len(session.windows) == window_count
311310
assert isinstance(w, Window)
312311
assert w.show_window_option("main-pane-height") == 5
313-
if has_gte_version("2.3"):
314-
assert w.show_window_option("pane-border-format") == " #P "
312+
assert w.show_window_option("pane-border-format") == " #P "
315313

316314
assert len(session.windows) == window_count
317315
window_count += 1

0 commit comments

Comments
 (0)