@@ -82,25 +82,25 @@ async def test_mode_setup(ModesApp: Type[App]):
8282 app = ModesApp ()
8383 async with app .run_test ():
8484 assert isinstance (app .screen , BaseScreen )
85- assert str (app .screen .query_one (Label ).renderable ) == "one"
85+ assert str (app .screen .query_one (Label ).content ) == "one"
8686
8787
8888async def test_switch_mode (ModesApp : Type [App ]):
8989 app = ModesApp ()
9090 async with app .run_test () as pilot :
9191 await pilot .press ("2" )
92- assert str (app .screen .query_one (Label ).renderable ) == "two"
92+ assert str (app .screen .query_one (Label ).content ) == "two"
9393 await pilot .press ("1" )
94- assert str (app .screen .query_one (Label ).renderable ) == "one"
94+ assert str (app .screen .query_one (Label ).content ) == "one"
9595
9696
9797async def test_switch_same_mode (ModesApp : Type [App ]):
9898 app = ModesApp ()
9999 async with app .run_test () as pilot :
100100 await pilot .press ("1" )
101- assert str (app .screen .query_one (Label ).renderable ) == "one"
101+ assert str (app .screen .query_one (Label ).content ) == "one"
102102 await pilot .press ("1" )
103- assert str (app .screen .query_one (Label ).renderable ) == "one"
103+ assert str (app .screen .query_one (Label ).content ) == "one"
104104
105105
106106async def test_switch_unknown_mode (ModesApp : Type [App ]):
@@ -115,7 +115,7 @@ async def test_remove_mode(ModesApp: Type[App]):
115115 async with app .run_test () as pilot :
116116 await app .switch_mode ("two" )
117117 await pilot .pause ()
118- assert str (app .screen .query_one (Label ).renderable ) == "two"
118+ assert str (app .screen .query_one (Label ).content ) == "two"
119119 app .remove_mode ("one" )
120120 assert "one" not in app ._modes
121121
@@ -133,7 +133,7 @@ async def test_add_mode(ModesApp: Type[App]):
133133 app .add_mode ("three" , lambda : BaseScreen ("three" ))
134134 await app .switch_mode ("three" )
135135 await pilot .pause ()
136- assert str (app .screen .query_one (Label ).renderable ) == "three"
136+ assert str (app .screen .query_one (Label ).content ) == "three"
137137
138138
139139async def test_add_mode_duplicated (ModesApp : Type [App ]):
@@ -152,7 +152,7 @@ async def test_screen_stack_preserved(ModesApp: Type[App]):
152152 # Build the stack up.
153153 for _ in range (N ):
154154 await pilot .press ("p" )
155- fruits .append (str (app .screen .query_one (Label ).renderable ))
155+ fruits .append (str (app .screen .query_one (Label ).content ))
156156
157157 assert len (app .screen_stack ) == N + 1
158158
@@ -164,7 +164,7 @@ async def test_screen_stack_preserved(ModesApp: Type[App]):
164164 # Check the stack.
165165 assert len (app .screen_stack ) == N + 1
166166 for _ in range (N ):
167- assert str (app .screen .query_one (Label ).renderable ) == fruits .pop ()
167+ assert str (app .screen .query_one (Label ).content ) == fruits .pop ()
168168 await pilot .press ("o" )
169169
170170
0 commit comments