diff options
author | 2023-02-02 14:17:07 -0500 | |
---|---|---|
committer | 2023-02-02 14:17:07 -0500 | |
commit | 806c356ddf61116360999d86fcc3387eec3e1376 (patch) | |
tree | c00a69c75ee646f20480adbb09ab45ea15371fbe | |
parent | dev-python/heudiconv: fixed tests (diff) | |
download | sci-806c356ddf61116360999d86fcc3387eec3e1376.tar.gz sci-806c356ddf61116360999d86fcc3387eec3e1376.tar.bz2 sci-806c356ddf61116360999d86fcc3387eec3e1376.zip |
dev-python/heudiconv: even better fix for tests
Signed-off-by: Horea Christian <chr@chymera.eu>
-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" |