Add tests for the wrong sized tuple

While type checking picks this up, not everyone uses type checking.
This commit is contained in:
Dave Pearson
2023-05-23 16:45:53 +01:00
parent 9f6d35b871
commit 50d77b231f

View File

@@ -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))