Use _modes in tests.

This commit is contained in:
Peter Bierma
2024-08-18 16:27:26 -04:00
parent 853f694a44
commit 0c6287811f

View File

@@ -117,7 +117,7 @@ async def test_remove_mode(ModesApp: Type[App]):
await pilot.pause()
assert str(app.screen.query_one(Label).renderable) == "two"
app.remove_mode("one")
assert "one" not in app.modes
assert "one" not in app._modes
async def test_remove_active_mode(ModesApp: Type[App]):