|
14 | 14 | from libtmux._internal.query_list import ObjectDoesNotExist |
15 | 15 | from libtmux.common import has_gte_version, has_lt_version, has_lte_version |
16 | 16 | from libtmux.constants import ( |
| 17 | + OptionScope, |
17 | 18 | PaneDirection, |
18 | 19 | ResizeAdjustmentDirection, |
19 | 20 | WindowDirection, |
@@ -60,7 +61,7 @@ def test_fresh_window_data(session: Session) -> None: |
60 | 61 | """Verify window data is fresh.""" |
61 | 62 | active_window = session.active_window |
62 | 63 | assert active_window is not None |
63 | | - pane_base_idx = active_window.show_option("pane-base-index", _global=True) |
| 64 | + pane_base_idx = active_window.show_option("pane-base-index", global_=True) |
64 | 65 | assert pane_base_idx is not None |
65 | 66 | pane_base_index = int(pane_base_idx) |
66 | 67 |
|
@@ -285,6 +286,27 @@ def test_show_window_options(session: Session) -> None: |
285 | 286 | options = window.show_window_options() |
286 | 287 | assert isinstance(options, dict) |
287 | 288 |
|
| 289 | + options_2 = window.show_options() |
| 290 | + assert isinstance(options_2, dict) |
| 291 | + |
| 292 | + pane_options = window.show_options(scope=OptionScope.Pane) |
| 293 | + assert isinstance(pane_options, dict) |
| 294 | + |
| 295 | + pane_options_global = window.show_options(scope=OptionScope.Pane, global_=True) |
| 296 | + assert isinstance(pane_options_global, dict) |
| 297 | + |
| 298 | + window_options = window.show_options(scope=OptionScope.Window) |
| 299 | + assert isinstance(window_options, dict) |
| 300 | + |
| 301 | + window_options_global = window.show_options(scope=OptionScope.Window, global_=True) |
| 302 | + assert isinstance(window_options_global, dict) |
| 303 | + |
| 304 | + server_options = window.show_options(scope=OptionScope.Server) |
| 305 | + assert isinstance(server_options, dict) |
| 306 | + |
| 307 | + server_options_global = window.show_options(scope=OptionScope.Server, global_=True) |
| 308 | + assert isinstance(server_options_global, dict) |
| 309 | + |
288 | 310 |
|
289 | 311 | def test_set_window_and_show_window_options(session: Session) -> None: |
290 | 312 | """Window.set_window_option() then Window.show_window_options(key).""" |
|
0 commit comments