mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Updated tests for validate manifest
This commit is contained in:
parent
e5f4c61608
commit
74923ef252
3 changed files with 17 additions and 52 deletions
|
|
@ -55,7 +55,11 @@ def test_defaults_to_backup_filename(noop_validator):
|
|||
|
||||
def test_raises_for_failing_schema(array_validator):
|
||||
with pytest.raises(ValueError):
|
||||
array_validator('tests/data/non_parseable_yaml_file.yaml')
|
||||
array_validator('tests/data/valid_yaml_but_invalid_manifest.yaml')
|
||||
|
||||
|
||||
def test_passes_array_schema(array_validator):
|
||||
array_validator('tests/data/array_yaml_file.yaml')
|
||||
|
||||
|
||||
def test_raises_when_additional_validation_fails(additional_validator):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue