Skip to content

Commit ea91c9b

Browse files
committed
tests(Window): show_options w/ scope
1 parent 4b25a51 commit ea91c9b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/test_window.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from libtmux._internal.query_list import ObjectDoesNotExist
1212
from libtmux.common import has_gte_version, has_lt_version, has_lte_version
1313
from libtmux.constants import (
14+
OptionScope,
1415
PaneDirection,
1516
ResizeAdjustmentDirection,
1617
WindowDirection,
@@ -259,6 +260,27 @@ def test_show_window_options(session: Session) -> None:
259260
options = window.show_window_options()
260261
assert isinstance(options, dict)
261262

263+
options_2 = window.show_options()
264+
assert isinstance(options_2, dict)
265+
266+
pane_options = window.show_options(scope=OptionScope.Pane)
267+
assert isinstance(pane_options, dict)
268+
269+
pane_options_global = window.show_options(scope=OptionScope.Pane, _global=True)
270+
assert isinstance(pane_options_global, dict)
271+
272+
window_options = window.show_options(scope=OptionScope.Window)
273+
assert isinstance(window_options, dict)
274+
275+
window_options_global = window.show_options(scope=OptionScope.Window, _global=True)
276+
assert isinstance(window_options_global, dict)
277+
278+
server_options = window.show_options(scope=OptionScope.Server)
279+
assert isinstance(server_options, dict)
280+
281+
server_options_global = window.show_options(scope=OptionScope.Server, _global=True)
282+
assert isinstance(server_options_global, dict)
283+
262284

263285
def test_set_window_and_show_window_options(session: Session) -> None:
264286
"""Window.set_window_option() then Window.show_window_options(key)."""

0 commit comments

Comments
 (0)