Skip to content

Commit 6c6cc48

Browse files
committed
tests(Window): show_options w/ scope
1 parent 00b7c1e commit 6c6cc48

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
@@ -13,6 +13,7 @@
1313
from libtmux._internal.query_list import ObjectDoesNotExist
1414
from libtmux.common import has_gte_version, has_lt_version, has_lte_version
1515
from libtmux.constants import (
16+
OptionScope,
1617
PaneDirection,
1718
ResizeAdjustmentDirection,
1819
WindowDirection,
@@ -263,6 +264,27 @@ def test_show_window_options(session: Session) -> None:
263264
options = window.show_window_options()
264265
assert isinstance(options, dict)
265266

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

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

0 commit comments

Comments
 (0)