Skip to content

Commit abe6edb

Browse files
committed
tests: show_window_option() -> show_option()
1 parent 44530b9 commit abe6edb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/legacy_api/test_window.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -225,20 +225,20 @@ def test_set_window_and_show_window_options(session: Session) -> None:
225225
assert window.show_window_option("pane-border-format") == " #P "
226226

227227

228-
def test_set_and_show_window_options(session: Session) -> None:
229-
"""Window.set_option() then Window.show_window_options(key)."""
228+
def test_set_and_show_options(session: Session) -> None:
229+
"""Window.set_option() then Window.show_options(key)."""
230230
window = session.new_window(window_name="test_window")
231231

232232
window.set_option("main-pane-height", 20)
233-
assert window.show_window_option("main-pane-height") == 20
233+
assert window.show_option("main-pane-height") == 20
234234

235235
window.set_option("main-pane-height", 40)
236-
assert window.show_window_option("main-pane-height") == 40
237-
assert window.show_window_options()["main-pane-height"] == 40
236+
assert window.show_option("main-pane-height") == 40
237+
assert window.show_options()["main-pane-height"] == 40
238238

239239
if has_gte_version("2.3"):
240240
window.set_option("pane-border-format", " #P ")
241-
assert window.show_window_option("pane-border-format") == " #P "
241+
assert window.show_option("pane-border-format") == " #P "
242242

243243

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

tests/test_window.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,19 @@ def test_set_window_and_show_window_options(session: Session) -> None:
260260

261261

262262
def test_set_and_show_window_options(session: Session) -> None:
263-
"""Window.set_option() then Window.show_window_options(key)."""
263+
"""Window.set_option() then Window.show_options(key)."""
264264
window = session.new_window(window_name="test_window")
265265

266266
window.set_option("main-pane-height", 20)
267-
assert window.show_window_option("main-pane-height") == 20
267+
assert window.show_option("main-pane-height") == 20
268268

269269
window.set_option("main-pane-height", 40)
270-
assert window.show_window_option("main-pane-height") == 40
271-
assert window.show_window_options()["main-pane-height"] == 40
270+
assert window.show_option("main-pane-height") == 40
271+
assert window.show_options()["main-pane-height"] == 40
272272

273273
if has_gte_version("2.3"):
274274
window.set_option("pane-border-format", " #P ")
275-
assert window.show_window_option("pane-border-format") == " #P "
275+
assert window.show_option("pane-border-format") == " #P "
276276

277277

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

0 commit comments

Comments
 (0)