|
13 | 13 | from libtmux._internal.query_list import ObjectDoesNotExist
|
14 | 14 | from libtmux.common import has_gte_version, has_lt_version, has_lte_version
|
15 | 15 | from libtmux.constants import (
|
| 16 | + OptionScope, |
16 | 17 | PaneDirection,
|
17 | 18 | ResizeAdjustmentDirection,
|
18 | 19 | WindowDirection,
|
@@ -283,6 +284,27 @@ def test_show_window_options(session: Session) -> None:
|
283 | 284 | options = window.show_window_options()
|
284 | 285 | assert isinstance(options, dict)
|
285 | 286 |
|
| 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 | + |
286 | 308 |
|
287 | 309 | def test_set_window_and_show_window_options(session: Session) -> None:
|
288 | 310 | """Window.set_window_option() then Window.show_window_options(key)."""
|
|
0 commit comments