Fix tests when user.name and user.email are not defined

Fixes #15
This commit is contained in:
Ondřej Caletka
2020-05-26 11:10:31 +02:00
parent 15cdae67ee
commit 83a4049821
+2
View File
@@ -15,6 +15,8 @@ def git_dir(tmpdir_factory):
d = tmpdir_factory.getbasetemp()
d.chdir()
subprocess.call(["git", "init"])
subprocess.call(["git", "config", "user.name", "dzonegit pytest"])
subprocess.call(["git", "config", "user.email", "nonexistent@example.com"])
return d