mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Normalize crlf in tests
This commit is contained in:
parent
517c3145f4
commit
4941ed58d5
7 changed files with 46 additions and 58 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import os.path
|
||||
import subprocess
|
||||
|
||||
import mock
|
||||
|
||||
|
|
@ -30,11 +29,9 @@ def test_init_templatedir(tmpdir, tempdir_factory, store, cap_out):
|
|||
path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
|
||||
|
||||
with cwd(path):
|
||||
retcode, output, _ = git_commit(
|
||||
retcode, output = git_commit(
|
||||
fn=cmd_output_mocked_pre_commit_home,
|
||||
tempdir_factory=tempdir_factory,
|
||||
# git commit puts pre-commit to stderr
|
||||
stderr=subprocess.STDOUT,
|
||||
)
|
||||
assert retcode == 0
|
||||
assert 'Bash hook....' in output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue