pre-commit-hooks/tests/conftest.py
2020-05-20 12:08:42 -04:00

10 lines
206 B
Python

import pytest
from pre_commit_hooks.util import cmd_output
@pytest.fixture
def temp_git_dir(tmpdir):
git_dir = tmpdir.join('gits')
cmd_output('git', 'init', '--', str(git_dir))
yield git_dir