Skip to content

Commit de764da

Browse files
committed
tests(Window): show_options w/ scope
1 parent ff9a760 commit de764da

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,
@@ -283,6 +284,27 @@ def test_show_window_options(session: Session) -> None:
283284
options = window.show_window_options()
284285
assert isinstance(options, dict)
285286

287+
options_2 = window.show_options()
288+
assert isinstance(options_2, dict)
289+
290+
pane_options = window.show_options(scope=OptionScope.Pane)
291+
assert isinstance(pane_options, dict)
292+
293+
pane_options_global = window.show_options(scope=OptionScope.Pane, _global=True)
294+
assert isinstance(pane_options_global, dict)
295+
296+
window_options = window.show_options(scope=OptionScope.Window)
297+
assert isinstance(window_options, dict)
298+
299+
window_options_global = window.show_options(scope=OptionScope.Window, _global=True)
300+
assert isinstance(window_options_global, dict)
301+
302+
server_options = window.show_options(scope=OptionScope.Server)
303+
assert isinstance(server_options, dict)
304+
305+
server_options_global = window.show_options(scope=OptionScope.Server, _global=True)
306+
assert isinstance(server_options_global, dict)
307+
286308

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

0 commit comments

Comments
 (0)