mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Add yaml hook.
This commit is contained in:
parent
3cfc49b522
commit
443b62d56a
3 changed files with 14 additions and 11 deletions
|
|
@ -39,7 +39,7 @@ def test_raises_for_non_existent_file(noop_validator):
|
|||
|
||||
def test_raises_for_invalid_yaml_file(noop_validator):
|
||||
with pytest.raises(ValueError):
|
||||
noop_validator(get_resource_path('non_parseable_yaml_file.yaml'))
|
||||
noop_validator(get_resource_path('non_parseable_yaml_file.notyaml'))
|
||||
|
||||
|
||||
def test_raises_for_failing_schema(array_validator):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue