Skip to content

Commit 58b6215

Browse files
committed
tests: show_window_option() -> show_option()
1 parent ea91c9b commit 58b6215

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

282282

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

287287
window.set_option("main-pane-height", 20)
288-
assert window.show_window_option("main-pane-height") == 20
288+
assert window.show_option("main-pane-height") == 20
289289

290290
window.set_option("main-pane-height", 40)
291-
assert window.show_window_option("main-pane-height") == 40
292-
assert window.show_window_options()["main-pane-height"] == 40
291+
assert window.show_option("main-pane-height") == 40
292+
assert window.show_options()["main-pane-height"] == 40
293293

294294
if has_gte_version("2.3"):
295295
window.set_option("pane-border-format", " #P ")
296-
assert window.show_window_option("pane-border-format") == " #P "
296+
assert window.show_option("pane-border-format") == " #P "
297297

298298

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

300300

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

305305
window.set_option("main-pane-height", 20)
306-
assert window.show_window_option("main-pane-height") == 20
306+
assert window.show_option("main-pane-height") == 20
307307

308308
window.set_option("main-pane-height", 40)
309-
assert window.show_window_option("main-pane-height") == 40
310-
assert window.show_window_options()["main-pane-height"] == 40
309+
assert window.show_option("main-pane-height") == 40
310+
assert window.show_options()["main-pane-height"] == 40
311311

312312
if has_gte_version("2.3"):
313313
window.set_option("pane-border-format", " #P ")
314-
assert window.show_window_option("pane-border-format") == " #P "
314+
assert window.show_option("pane-border-format") == " #P "
315315

316316

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

0 commit comments

Comments
 (0)