File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -225,20 +225,20 @@ def test_set_window_and_show_window_options(session: Session) -> None:
225
225
assert window .show_window_option ("pane-border-format" ) == " #P "
226
226
227
227
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)."""
230
230
window = session .new_window (window_name = "test_window" )
231
231
232
232
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
234
234
235
235
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
238
238
239
239
if has_gte_version ("2.3" ):
240
240
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 "
242
242
243
243
244
244
def test_empty_window_option_returns_None (session : Session ) -> None :
Original file line number Diff line number Diff line change @@ -260,19 +260,19 @@ def test_set_window_and_show_window_options(session: Session) -> None:
260
260
261
261
262
262
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)."""
264
264
window = session .new_window (window_name = "test_window" )
265
265
266
266
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
268
268
269
269
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
272
272
273
273
if has_gte_version ("2.3" ):
274
274
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 "
276
276
277
277
278
278
def test_empty_window_option_returns_None (session : Session ) -> None :
You can’t perform that action at this time.
0 commit comments