Files
clan-core/templates/python-project/tests/conftest.py
2023-07-21 13:48:37 +02:00

11 lines
219 B
Python

import subprocess
import pytest
# returns a temporary directory with a fake git repo
@pytest.fixture()
def git_repo_path(tmp_path: str) -> str:
subprocess.run(["mkdir", ".git"], cwd=tmp_path)
return tmp_path