aboutsummaryrefslogtreecommitdiff
blob: 23be6d0008675661bbf100b4e255e43831d9ba2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 0c30781248e0c1f2d437e0dfd923a74d7e647411 Mon Sep 17 00:00:00 2001
From: Horea Christian <chr@chymera.eu>
Date: Wed, 1 Feb 2023 21:34:58 -0500
Subject: [PATCH] Setting git author and email in test environment

---
 heudiconv/tests/conftest.py | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 heudiconv/tests/conftest.py

diff --git /dev/null b/heudiconv/tests/conftest.py
new file mode 100644
index 00000000..f4f47d16
--- /dev/null
+++ b/heudiconv/tests/conftest.py
@@ -0,0 +1,8 @@
+import os
+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"