mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add an add_options method to the OptionList
In doing so, pretty much make the add_option code into the add_options code, and then just have add_option call add_options. See #2507.
This commit is contained in:
@@ -106,6 +106,10 @@ async def test_add_later() -> None:
|
||||
assert option_list.option_count == 6
|
||||
option_list.add_option(Option("even more"))
|
||||
assert option_list.option_count == 7
|
||||
option_list.add_options(
|
||||
[Option("more still"), "Yet more options", "so many options!"]
|
||||
)
|
||||
assert option_list.option_count == 10
|
||||
|
||||
|
||||
async def test_create_with_duplicate_id() -> None:
|
||||
|
||||
Reference in New Issue
Block a user