From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0A6015800F for ; Thu, 2 Feb 2023 19:17:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25D15E07D1; Thu, 2 Feb 2023 19:17:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D28EE07D1 for ; Thu, 2 Feb 2023 19:17:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 180B7335DE8 for ; Thu, 2 Feb 2023 19:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4BEE7F8 for ; Thu, 2 Feb 2023 19:17:25 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1675365427.806c356ddf61116360999d86fcc3387eec3e1376.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/heudiconv/files/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/heudiconv/files/heudiconv-0.11.6-gitenv.patch X-VCS-Directories: dev-python/heudiconv/files/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 806c356ddf61116360999d86fcc3387eec3e1376 X-VCS-Branch: master Date: Thu, 2 Feb 2023 19:17:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 741ef93b-3e67-403d-ba9f-219d61962bee X-Archives-Hash: 160044c1a19ea05db171ac4fd0cab30d commit: 806c356ddf61116360999d86fcc3387eec3e1376 Author: Horea Christian chymera eu> AuthorDate: Thu Feb 2 19:17:07 2023 +0000 Commit: Horea Christian gmail 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 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"] = "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"