mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add tests for the wrong sized tuple
While type checking picks this up, not everyone uses type checking.
This commit is contained in:
@@ -71,3 +71,7 @@ async def test_add_non_selections() -> None:
|
||||
selections.add_option(Option("Nope"))
|
||||
with pytest.raises(SelectionError):
|
||||
selections.add_option("Nope")
|
||||
with pytest.raises(SelectionError):
|
||||
selections.add_option(("Nope",))
|
||||
with pytest.raises(SelectionError):
|
||||
selections.add_option(("Nope", 0, False, 23))
|
||||
|
||||
Reference in New Issue
Block a user