pre-commit-hooks/tests/conftest.py
2020-02-05 11:22:18 -08:00

10 lines
209 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', '--', git_dir.strpath)
yield git_dir