Skip to content

Commit 88c22fd

Browse files
committed
tests: show_window_option() -> show_option()
1 parent 4bf2c52 commit 88c22fd

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
@@ -279,20 +279,20 @@ def test_set_window_and_show_window_options(session: Session) -> None:
279279
assert window.show_window_option("pane-border-format") == " #P "
280280

281281

282-
def test_set_and_show_window_options(session: Session) -> None:
283-
"""Window.set_option() then Window.show_window_options(key)."""
282+
def test_set_and_show_options(session: Session) -> None:
283+
"""Window.set_option() then Window.show_options(key)."""
284284
window = session.new_window(window_name="test_window")
285285

286286
window.set_option("main-pane-height", 20)
287-
assert window.show_window_option("main-pane-height") == 20
287+
assert window.show_option("main-pane-height") == 20
288288

289289
window.set_option("main-pane-height", 40)
290-
assert window.show_window_option("main-pane-height") == 40
291-
assert window.show_window_options()["main-pane-height"] == 40
290+
assert window.show_option("main-pane-height") == 40
291+
assert window.show_options()["main-pane-height"] == 40
292292

293293
if has_gte_version("2.3"):
294294
window.set_option("pane-border-format", " #P ")
295-
assert window.show_window_option("pane-border-format") == " #P "
295+
assert window.show_option("pane-border-format") == " #P "
296296

297297

298298
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
@@ -298,19 +298,19 @@ def test_set_window_and_show_window_options(session: Session) -> None:
298298

299299

300300
def test_set_and_show_window_options(session: Session) -> None:
301-
"""Window.set_option() then Window.show_window_options(key)."""
301+
"""Window.set_option() then Window.show_options(key)."""
302302
window = session.new_window(window_name="test_window")
303303

304304
window.set_option("main-pane-height", 20)
305-
assert window.show_window_option("main-pane-height") == 20
305+
assert window.show_option("main-pane-height") == 20
306306

307307
window.set_option("main-pane-height", 40)
308-
assert window.show_window_option("main-pane-height") == 40
309-
assert window.show_window_options()["main-pane-height"] == 40
308+
assert window.show_option("main-pane-height") == 40
309+
assert window.show_options()["main-pane-height"] == 40
310310

311311
if has_gte_version("2.3"):
312312
window.set_option("pane-border-format", " #P ")
313-
assert window.show_window_option("pane-border-format") == " #P "
313+
assert window.show_option("pane-border-format") == " #P "
314314

315315

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

0 commit comments

Comments
 (0)