8000 tests: show_window_option() -> show_option() · tmux-python/libtmux@fb2f622 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb2f622

Browse files
committed
tests: show_window_option() -> show_option()
1 parent 57c1b38 commit fb2f622

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

229229

230-
def test_set_and_show_window_options(session: Session) -> None:
231-
"""Window.set_option() then Window.show_window_options(key)."""
230+
def test_set_and_show_options(session: Session) -> None:
231+
"""Window.set_option() then Window.show_options(key)."""
232232
window = session.new_window(window_name="test_window")
233233

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

237237
window.set_option("main-pane-height", 40)
238-
assert window.show_window_option("main-pane-height") == 40
239-
assert window.show_window_options()["main-pane-height"] == 40
238+
assert window.show_option("main-pane-height") == 40
239+
assert window.show_options()["main-pane-height"] == 40
240240

241241
if has_gte_version("2.3"):
242242
window.set_option("pane-border-format", " #P ")
243-
assert window.show_window_option("pane-border-format") == " #P "
243+
assert window.show_option("pane-border-format") == " #P "
244244

245245

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

263263

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

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

271271
window.set_option("main-pane-height", 40)
272-
assert window.show_window_option("main-pane-height") == 40
273-
assert window.show_window_options()["main-pane-height"] == 40
272+
assert window.show_option("main-pane-height") == 40
273+
assert window.show_options()["main-pane-height"] == 40
274274

275275
if has_gte_version("2.3"):
276276
window.set_option("pane-border-format", " #P ")
277-
assert window.show_window_option("pane-border-format") == " #P "
277+
assert window.show_option("pane-border-format") == " #P "
278278

279279

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

0 commit comments

Comments
 (0)
0