mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Allow spaces in system hooks. Closes #95.
This commit is contained in:
parent
53e316ade4
commit
61606cfaa4
5 changed files with 28 additions and 12 deletions
|
|
@ -40,6 +40,14 @@ def test_cwd_of_hook(config_for_prints_cwd_repo, store):
|
|||
assert ret[1] == repo.repo_url + '\n'
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_system_hook_with_spaces(config_for_system_hook_with_spaces, store):
|
||||
repo = Repository.create(config_for_system_hook_with_spaces, store)
|
||||
ret = repo.run_hook('system-hook-with-spaces', [])
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == 'Hello World\n'
|
||||
|
||||
|
||||
@skipif_slowtests_false
|
||||
@pytest.mark.integration
|
||||
def test_run_a_node_hook(config_for_node_hooks_repo, store):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue