@@ -14,15 +14,15 @@ def test_resize_pane(session: Session) -> None:
14
14
15
15
pane1 = window .attached_pane
16
16
assert pane1 is not None
17
- pane1_height = pane1 [ " pane_height" ]
17
+ pane1_height = pane1 . pane_height
18
18
window .split_window ()
19
19
20
20
pane1 .resize_pane (height = 4 )
21
- assert pane1 [ " pane_height" ] != pane1_height
22
- assert int (pane1 [ " pane_height" ] ) == 4
21
+ assert pane1 . pane_height != pane1_height
22
+ assert int (pane1 . pane_height ) == 4
23
23
24
24
pane1 .resize_pane (height = 3 )
25
- assert int (pane1 [ " pane_height" ] ) == 3
25
+ assert int (pane1 . pane_height ) == 3
26
26
27
27
28
28
def test_send_keys (session : Session ) -> None :
@@ -42,11 +42,11 @@ def test_set_height(session: Session) -> None:
42
42
window .split_window ()
43
43
pane1 = window .attached_pane
44
44
assert pane1 is not None
45
- pane1_height = pane1 [ " pane_height" ]
45
+ pane1_height = pane1 . pane_height
46
46
47
47
pane1 .set_height (4 )
48
- assert pane1 [ " pane_height" ] != pane1_height
49
- assert int (pane1 [ " pane_height" ] ) == 4
48
+ assert pane1 . pane_height != pane1_height
49
+ assert int (pane1 . pane_height ) == 4
50
50
51
51
52
52
def test_set_width (session : Session ) -> None :
@@ -56,11 +56,11 @@ def test_set_width(session: Session) -> None:
56
56
window .select_layout ("main-vertical" )
57
57
pane1 = window .attached_pane
58
58
assert pane1 is not None
59
- pane1_width = pane1 [ " pane_width" ]
59
+ pane1_width = pane1 . pane_width
60
60
61
61
pane1 .set_width (10 )
62
- assert pane1 [ " pane_width" ] != pane1_width
63
- assert int (pane1 [ " pane_width" ] ) == 10
62
+ assert pane1 . pane_width != pane1_width
63
+ assert int (pane1 . pane_width ) == 10
64
64
65
65
pane1 .reset ()
66
66
0 commit comments