Skip to content

Commit a4803d9

Browse files
committed
tests: show_window_option() -> show_option()
1 parent c49495b commit a4803d9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/legacy_api/test_window.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,20 +284,20 @@ def test_set_window_and_show_window_options(session: Session) -> None:
284284
assert window.show_window_option("pane-border-format") == " #P "
285285

286286

287-
def test_set_and_show_window_options(session: Session) -> None:
288-
"""Window.set_option() then Window.show_window_options(key)."""
287+
def test_set_and_show_options(session: Session) -> None:
288+
"""Window.set_option() then Window.show_options(key)."""
289289
window = session.new_window(window_name="test_window")
290290

291291
window.set_option("main-pane-height", 20)
292-
assert window.show_window_option("main-pane-height") == 20
292+
assert window.show_option("main-pane-height") == 20
293293

294294
window.set_option("main-pane-height", 40)
295-
assert window.show_window_option("main-pane-height") == 40
296-
assert window.show_window_options()["main-pane-height"] == 40
295+
assert window.show_option("main-pane-height") == 40
296+
assert window.show_options()["main-pane-height"] == 40
297297

298298
if has_gte_version("2.3"):
299299
window.set_option("pane-border-format", " #P ")
300-
assert window.show_window_option("pane-border-format") == " #P "
300+
assert window.show_option("pane-border-format") == " #P "
301301

302302

303303
def test_empty_window_option_returns_None(session: Session) -> None:

tests/test_window.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,19 +325,19 @@ def test_set_window_and_show_window_options(session: Session) -> None:
325325

326326

327327
def test_set_and_show_window_options(session: Session) -> None:
328-
"""Window.set_option() then Window.show_window_options(key)."""
328+
"""Window.set_option() then Window.show_options(key)."""
329329
window = session.new_window(window_name="test_window")
330330

331331
window.set_option("main-pane-height", 20)
332-
assert window.show_window_option("main-pane-height") == 20
332+
assert window.show_option("main-pane-height") == 20
333333

334334
window.set_option("main-pane-height", 40)
335-
assert window.show_window_option("main-pane-height") == 40
336-
assert window.show_window_options()["main-pane-height"] == 40
335+
assert window.show_option("main-pane-height") == 40
336+
assert window.show_options()["main-pane-height"] == 40
337337

338338
if has_gte_version("2.3"):
339339
window.set_option("pane-border-format", " #P ")
340-
assert window.show_window_option("pane-border-format") == " #P "
340+
assert window.show_option("pane-border-format") == " #P "
341341

342342

343343
def test_empty_window_option_returns_None(session: Session) -> None:

0 commit comments

Comments
 (0)