Skip to content

Commit 2a911b0

Browse files
committed
!squash fix: rename _global to global_ in test_window
why: Match the parameter rename from _global to global_ in OptionsMixin. what: - Update all _global usages to global_ in tests/test_window.py - Update _global usage in tests/legacy_api/test_window.py
1 parent 490b3c1 commit 2a911b0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/legacy_api/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_fresh_window_data(session: Session) -> None:
5353
"""Verify window data is fresh."""
5454
attached_window = session.attached_window
5555
assert attached_window is not None
56-
pane_base_idx = attached_window._show_option("pane-base-index", _global=True)
56+
pane_base_idx = attached_window._show_option("pane-base-index", global_=True)
5757
assert pane_base_idx is not None
5858
pane_base_index = int(pane_base_idx)
5959

tests/test_window.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_fresh_window_data(session: Session) -> None:
6161
"""Verify window data is fresh."""
6262
active_window = session.active_window
6363
assert active_window is not None
64-
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)
6565
assert pane_base_idx is not None
6666
pane_base_index = int(pane_base_idx)
6767

@@ -292,20 +292,20 @@ def test_show_window_options(session: Session) -> None:
292292
pane_options = window._show_options(scope=OptionScope.Pane)
293293
assert isinstance(pane_options, dict)
294294

295-
pane_options_global = window._show_options(scope=OptionScope.Pane, _global=True)
296-
assert isinstance(pane_options_global, dict)
295+
pane_optionsglobal_ = window._show_options(scope=OptionScope.Pane, global_=True)
296+
assert isinstance(pane_optionsglobal_, dict)
297297

298298
window_options = window._show_options(scope=OptionScope.Window)
299299
assert isinstance(window_options, dict)
300300

301-
window_options_global = window._show_options(scope=OptionScope.Window, _global=True)
302-
assert isinstance(window_options_global, dict)
301+
window_optionsglobal_ = window._show_options(scope=OptionScope.Window, global_=True)
302+
assert isinstance(window_optionsglobal_, dict)
303303

304304
server_options = window._show_options(scope=OptionScope.Server)
305305
assert isinstance(server_options, dict)
306306

307-
server_options_global = window._show_options(scope=OptionScope.Server, _global=True)
308-
assert isinstance(server_options_global, dict)
307+
server_optionsglobal_ = window._show_options(scope=OptionScope.Server, global_=True)
308+
assert isinstance(server_optionsglobal_, dict)
309309

310310

311311
def test_set_window_and_show_window_options(session: Session) -> None:

0 commit comments

Comments
 (0)