|
11 | 11 | from libtmux._internal.query_list import ObjectDoesNotExist |
12 | 12 | from libtmux.common import has_gte_version, has_lt_version, has_lte_version |
13 | 13 | from libtmux.constants import ( |
| 14 | + OptionScope, |
14 | 15 | PaneDirection, |
15 | 16 | ResizeAdjustmentDirection, |
16 | 17 | WindowDirection, |
@@ -259,6 +260,27 @@ def test_show_window_options(session: Session) -> None: |
259 | 260 | options = window.show_window_options() |
260 | 261 | assert isinstance(options, dict) |
261 | 262 |
|
| 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 | + |
262 | 284 |
|
263 | 285 | def test_set_window_and_show_window_options(session: Session) -> None: |
264 | 286 | """Window.set_window_option() then Window.show_window_options(key).""" |
|
0 commit comments