mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix typo
This commit is contained in:
parent
0c481ea51d
commit
c2375f2fa8
2 changed files with 7 additions and 7 deletions
|
|
@ -414,9 +414,9 @@ def test_autoupdate_local_hooks(in_git_dir, store):
|
||||||
config = sample_local_config()
|
config = sample_local_config()
|
||||||
add_config_to_repo('.', config)
|
add_config_to_repo('.', config)
|
||||||
assert autoupdate(C.CONFIG_FILE, store, freeze=False, tags_only=False) == 0
|
assert autoupdate(C.CONFIG_FILE, store, freeze=False, tags_only=False) == 0
|
||||||
new_config_writen = read_config('.')
|
new_config_written = read_config('.')
|
||||||
assert len(new_config_writen['repos']) == 1
|
assert len(new_config_written['repos']) == 1
|
||||||
assert new_config_writen['repos'][0] == config
|
assert new_config_written['repos'][0] == config
|
||||||
|
|
||||||
|
|
||||||
def test_autoupdate_local_hooks_with_out_of_date_repo(
|
def test_autoupdate_local_hooks_with_out_of_date_repo(
|
||||||
|
|
@ -429,9 +429,9 @@ def test_autoupdate_local_hooks_with_out_of_date_repo(
|
||||||
config = {'repos': [local_config, stale_config]}
|
config = {'repos': [local_config, stale_config]}
|
||||||
write_config('.', config)
|
write_config('.', config)
|
||||||
assert autoupdate(C.CONFIG_FILE, store, freeze=False, tags_only=False) == 0
|
assert autoupdate(C.CONFIG_FILE, store, freeze=False, tags_only=False) == 0
|
||||||
new_config_writen = read_config('.')
|
new_config_written = read_config('.')
|
||||||
assert len(new_config_writen['repos']) == 2
|
assert len(new_config_written['repos']) == 2
|
||||||
assert new_config_writen['repos'][0] == local_config
|
assert new_config_written['repos'][0] == local_config
|
||||||
|
|
||||||
|
|
||||||
def test_autoupdate_meta_hooks(tmpdir, store):
|
def test_autoupdate_meta_hooks(tmpdir, store):
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ def test_check_args_length_error_too_many_plural():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_check_args_length_error_too_many_singluar():
|
def test_check_args_length_error_too_many_singular():
|
||||||
with pytest.raises(SystemExit) as excinfo:
|
with pytest.raises(SystemExit) as excinfo:
|
||||||
hook_impl._check_args_length('commit-msg', [])
|
hook_impl._check_args_length('commit-msg', [])
|
||||||
msg, = excinfo.value.args
|
msg, = excinfo.value.args
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue