|
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, |
@@ -263,6 +264,27 @@ def test_show_window_options(session: Session) -> None: |
263 | 264 | options = window.show_window_options() |
264 | 265 | assert isinstance(options, dict) |
265 | 266 |
|
| 267 | + options_2 = window.show_options() |
| 268 | + assert isinstance(options_2, dict) |
| 269 | + |
| 270 | + pane_options = window.show_options(scope=OptionScope.Pane) |
| 271 | + assert isinstance(pane_options, dict) |
| 272 | + |
| 273 | + pane_options_global = window.show_options(scope=OptionScope.Pane, _global=True) |
| 274 | + assert isinstance(pane_options_global, dict) |
| 275 | + |
| 276 | + window_options = window.show_options(scope=OptionScope.Window) |
| 277 | + assert isinstance(window_options, dict) |
| 278 | + |
| 279 | + window_options_global = window.show_options(scope=OptionScope.Window, _global=True) |
| 280 | + assert isinstance(window_options_global, dict) |
| 281 | + |
| 282 | + server_options = window.show_options(scope=OptionScope.Server) |
| 283 | + assert isinstance(server_options, dict) |
| 284 | + |
| 285 | + server_options_global = window.show_options(scope=OptionScope.Server, _global=True) |
| 286 | + assert isinstance(server_options_global, dict) |
| 287 | + |
266 | 288 |
|
267 | 289 | def test_set_window_and_show_window_options(session: Session) -> None: |
268 | 290 | """Window.set_window_option() then Window.show_window_options(key).""" |
|
0 commit comments