mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add failing test for #90.
This commit is contained in:
parent
4f122a3e6c
commit
26af2cecab
1 changed files with 11 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue