We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f122a3 commit 26af2ceCopy full SHA for 26af2ce
1 file changed
tests/repository_test.py
@@ -1,6 +1,7 @@
1
import mock
2
import os
3
import pytest
4
+from plumbum import local
5
6
import pre_commit.constants as C
7
from pre_commit import repository
@@ -167,3 +168,13 @@ def test_reinstall(config_for_python_hooks_repo):
167
168
# TODO: how to assert this?
169
repo = Repository(config_for_python_hooks_repo)
170
repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE))
171
+
172
173
+@pytest.mark.xfail
174
+@pytest.mark.integration
175
+def test_really_long_file_paths(config_for_python_hooks_repo):
176
+ path = 'really_long' * 10
177
+ local['git']['init', path]()
178
+ with local.cwd(path):
179
+ repo = Repository(config_for_python_hooks_repo)
180
+ repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE))
0 commit comments