mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
azure pipelines [skip travis] [skip appveyor]
This commit is contained in:
parent
8171e47eb2
commit
8bb94f0bd4
10 changed files with 33 additions and 95 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import subprocess
|
||||
import distutils.spawn
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -67,8 +67,7 @@ def test_integration(temp_git_dir):
|
|||
|
||||
|
||||
def has_gitlfs():
|
||||
output = cmd_output('git', 'lfs', retcode=None, stderr=subprocess.STDOUT)
|
||||
return 'git lfs status' in output
|
||||
return distutils.spawn.find_executable('git-lfs') is not None
|
||||
|
||||
|
||||
xfailif_no_gitlfs = pytest.mark.xfail(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue