1
0
Fork 0

Merging upstream version 2.14.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:29:18 +01:00
parent 1174438af7
commit 7cb502b795
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
15 changed files with 148 additions and 56 deletions

View file

@ -427,7 +427,7 @@ def test_minimum_pre_commit_version_passing():
@pytest.mark.parametrize('schema', (CONFIG_SCHEMA, CONFIG_REPO_DICT))
def test_warn_additional(schema):
allowed_keys = {item.key for item in schema.items if hasattr(item, 'key')}
warn_additional, = [
warn_additional, = (
x for x in schema.items if isinstance(x, cfgv.WarnAdditionalKeys)
]
)
assert allowed_keys == set(warn_additional.keys)