|
9 | 9 | from libtmux import exc
|
10 | 10 | from libtmux._internal.query_list import ObjectDoesNotExist
|
11 | 11 | from libtmux.common import has_gte_version, has_lt_version
|
| 12 | +from libtmux.constants import OptionScope |
12 | 13 | from libtmux.pane import Pane
|
13 | 14 | from libtmux.server import Server
|
14 | 15 | from libtmux.session import Session
|
@@ -222,6 +223,27 @@ def test_show_window_options(session: Session) -> None:
|
222 | 223 | options = window.show_window_options()
|
223 | 224 | assert isinstance(options, dict)
|
224 | 225 |
|
| 226 | + options_2 = window.show_options() |
| 227 | + assert isinstance(options_2, dict) |
| 228 | + |
| 229 | + pane_options = window.show_options(scope=OptionScope.Pane) |
| 230 | + assert isinstance(pane_options, dict) |
| 231 | + |
| 232 | + pane_options_global = window.show_options(scope=OptionScope.Pane, g=True) |
| 233 | + assert isinstance(pane_options_global, dict) |
| 234 | + |
| 235 | + window_options = window.show_options(scope=OptionScope.Window) |
| 236 | + assert isinstance(window_options, dict) |
| 237 | + |
| 238 | + window_options_global = window.show_options(scope=OptionScope.Window, g=True) |
| 239 | + assert isinstance(window_options_global, dict) |
| 240 | + |
| 241 | + server_options = window.show_options(scope=OptionScope.Server) |
| 242 | + assert isinstance(server_options, dict) |
| 243 | + |
| 244 | + server_options_global = window.show_options(scope=OptionScope.Server, g=True) |
| 245 | + assert isinstance(server_options_global, dict) |
| 246 | + |
225 | 247 |
|
226 | 248 | def test_set_window_and_show_window_options(session: Session) -> None:
|
227 | 249 | """Window.set_window_option() then Window.show_window_options(key)."""
|
|
0 commit comments