Try fixing missing auhor

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-07-27 10:34:04 +02:00
parent 4662c7de47
commit 98f20a41dd
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

@ -154,7 +154,12 @@ def test_fetch_ok(tmp_path):
repo_a.joinpath(".gitignore").touch() repo_a.joinpath(".gitignore").touch()
# commit it # commit it
r.git.add(".gitignore") r.git.add(".gitignore")
r.git.commit(message = "Test Commit", author = "Tester <test@a.b>") with r.config_writer("repository") as cw:
cw.add_section("user")
cw.add_value("user", "name", "Tester")
cw.add_value("user", "email", "test@a.b")
r.git.commit(message = "Test Commit")
hash = r.commit("master").hexsha hash = r.commit("master").hexsha
assert rt.fetch() assert rt.fetch()