diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch b/dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch index 27bc441aa..23be6d000 100644 --- a/dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch +++ b/dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch @@ -13,9 +13,12 @@ new file mode 100644 index 00000000..f4f47d16 --- /dev/null +++ b/heudiconv/tests/conftest.py -@@ -0,0 +1,5 @@ +@@ -0,0 +1,8 @@ +import os -+os.environ["GIT_AUTHOR_EMAIL"] = "maxm@example.com" -+os.environ["GIT_AUTHOR_NAME"] = "Max Mustermann" -+os.environ["GIT_COMMITTER_EMAIL"] = "maxm@example.com" -+os.environ["GIT_COMMITTER_NAME"] = "Max Mustermann" ++import pytest ++@pytest.fixture(autouse=True, scope="session") ++def git_env(): ++ os.environ["GIT_AUTHOR_EMAIL"] = "maxm@example.com" ++ os.environ["GIT_AUTHOR_NAME"] = "Max Mustermann" ++ os.environ["GIT_COMMITTER_EMAIL"] = "maxm@example.com" ++ os.environ["GIT_COMMITTER_NAME"] = "Max Mustermann" |