Skip to content

Commit 4bf2c52

Browse files
committed
tests(Window): show_options w/ scope
1 parent 3e5a924 commit 4bf2c52

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
@@ -10,6 +10,7 @@
1010
from libtmux._internal.query_list import ObjectDoesNotExist
1111
from libtmux.common import has_gte_version, has_lt_version, has_lte_version
1212
from libtmux.constants import (
13+
OptionScope,
1314
PaneDirection,
1415
ResizeAdjustmentDirection,
1516
WindowDirection,
@@ -258,6 +259,27 @@ def test_show_window_options(session: Session) -> None:
258259
options = window.show_window_options()
259260
assert isinstance(options, dict)
260261

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

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

0 commit comments

Comments
 (0)