From 26af2cecab7168e232d83188a32812a85a2ca515 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 20 Apr 2014 00:17:32 -0400 Subject: [PATCH] Add failing test for #90. --- tests/repository_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/repository_test.py b/tests/repository_test.py index ab3ea71f..c79dd664 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -1,6 +1,7 @@ import mock import os import pytest +from plumbum import local import pre_commit.constants as C from pre_commit import repository @@ -167,3 +168,13 @@ def test_reinstall(config_for_python_hooks_repo): # TODO: how to assert this? repo = Repository(config_for_python_hooks_repo) repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE)) + + +@pytest.mark.xfail +@pytest.mark.integration +def test_really_long_file_paths(config_for_python_hooks_repo): + path = 'really_long' * 10 + local['git']['init', path]() + with local.cwd(path): + repo = Repository(config_for_python_hooks_repo) + repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE))