commit:     806c356ddf61116360999d86fcc3387eec3e1376
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Thu Feb  2 19:17:07 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Thu Feb  2 19:17:07 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=806c356d

dev-python/heudiconv: even better fix for tests

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch | 13 ++++++++-----
 1 file 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"] = "[email protected]"
-+os.environ["GIT_AUTHOR_NAME"] = "Max Mustermann"
-+os.environ["GIT_COMMITTER_EMAIL"] = "[email protected]"
-+os.environ["GIT_COMMITTER_NAME"] = "Max Mustermann"
++import pytest
[email protected](autouse=True, scope="session")
++def git_env():
++      os.environ["GIT_AUTHOR_EMAIL"] = "[email protected]"
++      os.environ["GIT_AUTHOR_NAME"] = "Max Mustermann"
++      os.environ["GIT_COMMITTER_EMAIL"] = "[email protected]"
++      os.environ["GIT_COMMITTER_NAME"] = "Max Mustermann"

Reply via email to