mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Added hook-stage print to output for missing hook id
This commit is contained in:
parent
927b2ab3f8
commit
c148845a98
2 changed files with 8 additions and 2 deletions
|
|
@ -231,7 +231,13 @@ def test_show_diff_on_failure(
|
|||
({}, (b'Bash hook', b'Passed'), 0, True),
|
||||
({'verbose': True}, (b'foo.py\nHello World',), 0, True),
|
||||
({'hook': 'bash_hook'}, (b'Bash hook', b'Passed'), 0, True),
|
||||
({'hook': 'nope'}, (b'No hook with id `nope`',), 1, True),
|
||||
({'hook': 'nope'}, (b'No hook with id `nope` in stage `commit`',), 1, True),
|
||||
(
|
||||
{'hook': 'nope', 'hook_stage': 'push'},
|
||||
(b'No hook with id `nope` in stage `push`',),
|
||||
1,
|
||||
True
|
||||
),
|
||||
(
|
||||
{'all_files': True, 'verbose': True},
|
||||
(b'foo.py',),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue