File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -284,20 +284,20 @@ def test_set_window_and_show_window_options(session: Session) -> None:
284
284
assert window .show_window_option ("pane-border-format" ) == " #P "
285
285
286
286
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)."""
289
289
window = session .new_window (window_name = "test_window" )
290
290
291
291
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
293
293
294
294
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
297
297
298
298
if has_gte_version ("2.3" ):
299
299
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 "
301
301
302
302
303
303
def test_empty_window_option_returns_None (session : Session ) -> None :
Original file line number Diff line number Diff line change @@ -323,19 +323,19 @@ def test_set_window_and_show_window_options(session: Session) -> None:
323
323
324
324
325
325
def test_set_and_show_window_options (session : Session ) -> None :
326
- """Window.set_option() then Window.show_window_options (key)."""
326
+ """Window.set_option() then Window.show_options (key)."""
327
327
window = session .new_window (window_name = "test_window" )
328
328
329
329
window .set_option ("main-pane-height" , 20 )
330
- assert window .show_window_option ("main-pane-height" ) == 20
330
+ assert window .show_option ("main-pane-height" ) == 20
331
331
332
332
window .set_option ("main-pane-height" , 40 )
333
- assert window .show_window_option ("main-pane-height" ) == 40
334
- assert window .show_window_options ()["main-pane-height" ] == 40
333
+ assert window .show_option ("main-pane-height" ) == 40
334
+ assert window .show_options ()["main-pane-height" ] == 40
335
335
336
336
if has_gte_version ("2.3" ):
337
337
window .set_option ("pane-border-format" , " #P " )
338
- assert window .show_window_option ("pane-border-format" ) == " #P "
338
+ assert window .show_option ("pane-border-format" ) == " #P "
339
339
340
340
341
341
def test_empty_window_option_returns_None (session : Session ) -> None :
You can’t perform that action at this time.
0 commit comments