mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add failing test for too many files
This commit is contained in:
parent
6b1097d3c9
commit
afed660077
1 changed files with 10 additions and 0 deletions
|
|
@ -52,6 +52,16 @@ def test_run_a_python_hook(config_for_python_pre_commit_git_repo):
|
|||
assert ret[1] == 'Hello World\n'
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_run_a_hook_lots_of_files(config_for_python_pre_commit_git_repo):
|
||||
repo = Repository(config_for_python_pre_commit_git_repo)
|
||||
repo.install()
|
||||
ret = repo.run_hook('foo', ['/dev/null'] * 15000)
|
||||
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == 'Hello World\n'
|
||||
|
||||
|
||||
@pytest.mark.skipif(True, reason="TODO: make this test not super slow")
|
||||
def test_run_a_node_hook(config_for_node_pre_commit_git_repo):
|
||||
repo = Repository(config_for_node_pre_commit_git_repo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue