Merging upstream version 2.14.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1174438af7
commit
7cb502b795
15 changed files with 148 additions and 56 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue