1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

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

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