Merge pull request 'templates: add python-project' (#10) from python-template into main
This commit is contained in:
10
templates/python-project/tests/conftest.py
Normal file
10
templates/python-project/tests/conftest.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
# returns a temporary directory with a fake git repo
|
||||
@pytest.fixture()
|
||||
def git_repo_path(tmp_path):
|
||||
subprocess.run(["mkdir", ".git"], cwd=tmp_path)
|
||||
return tmp_path
|
||||
Reference in New Issue
Block a user