From afed6600770c03cca37a4c1db6e52ee741c38063 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 22 Mar 2014 14:57:22 -0700 Subject: [PATCH] Add failing test for too many files --- tests/repository_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/repository_test.py b/tests/repository_test.py index c0dff617..f8d73cb8 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -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)