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