mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update the RadioSet tests to not dive into _buttons
It doesn't exist any more.
This commit is contained in:
@@ -39,8 +39,8 @@ async def test_radio_sets_initial_state():
|
||||
async def test_radio_sets_toggle():
|
||||
"""Test the status of the radio sets after they've been toggled."""
|
||||
async with RadioSetApp().run_test() as pilot:
|
||||
pilot.app.query_one("#from_buttons", RadioSet)._buttons[0].toggle()
|
||||
pilot.app.query_one("#from_strings", RadioSet)._buttons[2].toggle()
|
||||
pilot.app.query_one("#from_buttons", RadioSet)._nodes[0].toggle()
|
||||
pilot.app.query_one("#from_strings", RadioSet)._nodes[2].toggle()
|
||||
await pilot.pause()
|
||||
assert pilot.app.query_one("#from_buttons", RadioSet).pressed_index == 0
|
||||
assert pilot.app.query_one("#from_buttons", RadioSet).pressed_button is not None
|
||||
|
||||
Reference in New Issue
Block a user