Merging upstream version 3.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f7ee0eb8fc
commit
c4c52947de
88 changed files with 1083 additions and 974 deletions
14
tests/languages/fail_test.py
Normal file
14
tests/languages/fail_test.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from pre_commit.languages import fail
|
||||
from testing.language_helpers import run_language
|
||||
|
||||
|
||||
def test_fail_hooks(tmp_path):
|
||||
ret = run_language(
|
||||
tmp_path,
|
||||
fail,
|
||||
'watch out for',
|
||||
file_args=('bunnies',),
|
||||
)
|
||||
assert ret == (1, b'watch out for\n\nbunnies\n')
|
Loading…
Add table
Add a link
Reference in a new issue