manifest -> hooks · precommit/pre-commit@c62c1a3 · GitHub
Skip to content

Commit c62c1a3

Browse files
committed
manifest -> hooks
1 parent d4c9f90 commit c62c1a3

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

File renamed without changes.

pre_commit/constants.py

Lines changed: 1 addition & 1 deletion
File renamed without changes.
File renamed without changes.

tests/clientlib/validate_base_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AdditionalValidatorError(ValueError): pass
1717

1818
@pytest.fixture
1919
def noop_validator():
20-
return get_validator('example_manifest.yaml', {}, ValueError)
20+
return get_validator('example_hooks.yaml', {}, ValueError)
2121

2222

2323
@pytest.fixture
@@ -31,7 +31,7 @@ def raises_always(obj):
3131
raise AdditionalValidatorError
3232

3333
return get_validator(
34-
'example_manifest.yaml',
34+
'example_hooks.yaml',
3535
{},
3636
ValueError,
3737
additional_validation_strategy=raises_always,
@@ -52,7 +52,7 @@ def test_defaults_to_backup_filename(noop_validator):
5252
with mock.patch.object(__builtin__, 'open', side_effect=open) as mock_open:
5353
noop_validator()
5454
mock_open.assert_called_once_with(
55-
os.path.join(git.get_root(), 'example_manifest.yaml'), 'r',
55+
os.path.join(git.get_root(), 'example_hooks.yaml'), 'r',
5656
)
5757

5858

tests/clientlib/validate_manifest_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def test_returns_0_for_valid_manifest():
13-
assert run(['example_manifest.yaml']) == 0
13+
assert run(['example_hooks.yaml']) == 0
1414

1515

1616
def test_returns_0_for_our_manifest():

tests/git_test.py

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)