Package: pdm-backend / 2.4.4+ds1-1

0003-tests-conftest.py-Also-init-git-config-first.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Boyuan Yang <byang@debian.org>
Date: Wed, 9 Apr 2025 17:53:48 -0400
Subject: tests/conftest.py: Also init git config first

---
 tests/conftest.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/conftest.py b/tests/conftest.py
index 9cd3daa..a496e61 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -22,6 +22,8 @@ def dist(tmp_path: Path) -> Path:
 
 @pytest.fixture
 def scm(fixture_project: Path) -> None:
+    subprocess.check_call(["git", "config", "--global", "user.email", "you@example.com"])
+    subprocess.check_call(["git", "config", "--global", "user.name", "Your Name"])
     subprocess.check_call(["git", "init"])
     subprocess.check_call(["git", "add", "."])
     subprocess.check_call(["git", "commit", "-m", "initial commit"])