@@ -78,7 +78,7 @@ def test_split_windows_three_pane(session: Session) -> None:
7878
7979 assert len (session .windows ) == window_count
8080 window_count += 1
81- w .set_window_option ("main-pane-height" , 50 )
81+ w .set_option ("main-pane-height" , 50 )
8282 w .select_layout (wconf ["layout" ])
8383
8484
@@ -96,9 +96,9 @@ def test_focus_pane_index(session: Session) -> None:
9696
9797 assert session .active_window .name == "focused window"
9898
99- pane_base_index_ = session .active_window .show_window_option (
99+ pane_base_index_ = session .active_window .show_option (
100100 "pane-base-index" ,
101- g = True ,
101+ global_ = True ,
102102 )
103103 assert isinstance (pane_base_index_ , int )
104104 pane_base_index = int (pane_base_index_ )
@@ -278,10 +278,10 @@ def test_global_session_env_options(
278278 builder .build (session = session )
279279
280280 visual_silence_ = session .show_option ("visual-silence" , global_ = True )
281- assert isinstance (visual_silence_ , str )
282- assert visual_silence in visual_silence_
281+ assert isinstance (visual_silence_ , bool )
282+ assert visual_silence_ is True
283283 assert repeat_time == session .show_option ("repeat-time" )
284- assert main_pane_height == session .active_window .show_window_option (
284+ assert main_pane_height == session .active_window .show_option (
285285 "main-pane-height" ,
286286 )
287287
@@ -307,8 +307,8 @@ def test_window_options(
307307 p = p
308308 assert len (session .windows ) == window_count
309309 assert isinstance (w , Window )
310- assert w .show_window_option ("main-pane-height" ) == 5
311- assert w .show_window_option ("pane-border-format" ) == " #P "
310+ assert w .show_option ("main-pane-height" ) == 5
311+ assert w .show_option ("pane-border-format" ) == " #P "
312312
313313 assert len (session .windows ) == window_count
314314 window_count += 1
@@ -457,7 +457,7 @@ def check_window_name_mismatch() -> bool:
457457 assert retry_until (check_window_name_mismatch , 5 , interval = 0.25 )
458458
459459 def check_window_name_match () -> bool :
460- assert w .show_window_option ("automatic-rename" ) == "on"
460+ assert w .show_option ("automatic-rename" ) is True
461461 return w .name in {
462462 pathlib .Path (os .getenv ("SHELL" , "bash" )).name ,
463463 portable_command ,
@@ -654,7 +654,7 @@ def test_pane_order(session: Session) -> None:
654654 window_count += 1
655655
656656 for w in session .windows :
657- pane_base_index = w .show_window_option ("pane-base-index" , g = True )
657+ pane_base_index = w .show_option ("pane-base-index" , global_ = True )
658658 assert pane_base_index is not None
659659 pane_base_index = int (pane_base_index )
660660 for p_index , p in enumerate (w .panes , start = pane_base_index ):
0 commit comments