fix: ensure 2+ items in each override in schema (#1628)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2023-09-28 19:32:18 -04:00
committed by GitHub
parent d4af0ac229
commit 86248929ed
3 changed files with 15 additions and 0 deletions
+13
View File
@@ -59,6 +59,19 @@ def test_overrides_no_select():
validator(example)
def test_overrides_only_select():
example = tomllib.loads(
"""
[[tool.cibuildwheel.overrides]]
select = "somestring"
"""
)
validator = validate_pyproject.api.Validator()
with pytest.raises(validate_pyproject.error_reporting.ValidationError):
validator(example)
def test_docs_examples():
"""
Parse out all the configuration examples, build valid TOML out of them, and