mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix filenames with spaces in them.
This commit is contained in:
parent
061ac81682
commit
2ec7a34035
8 changed files with 25 additions and 7 deletions
|
|
@ -102,6 +102,14 @@ def test_run_a_script_hook(tmpdir_factory, store):
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_run_hook_with_spaced_args(tmpdir_factory, store):
|
||||
_test_hook_repo(
|
||||
tmpdir_factory, store, 'arg_per_line_hooks_repo',
|
||||
'arg-per-line', ['foo bar', 'baz'], 'arg: foo bar\narg: baz\n',
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_pcre_hook_no_match(tmpdir_factory, store):
|
||||
path = git_dir(tmpdir_factory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue