summaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
blob: 807f15b86bb939ebb40f565d264d9ae6b0ef3979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from __future__ import annotations

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