From 98f20a41dd45da252b53c0ae6f0ee905a2b8af67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Wed, 27 Jul 2022 10:34:04 +0200 Subject: [PATCH] Try fixing missing auhor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- tests/lib/test_repo_tool.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/lib/test_repo_tool.py b/tests/lib/test_repo_tool.py index 15baabe..27dfb67 100644 --- a/tests/lib/test_repo_tool.py +++ b/tests/lib/test_repo_tool.py @@ -154,7 +154,12 @@ def test_fetch_ok(tmp_path): repo_a.joinpath(".gitignore").touch() # commit it r.git.add(".gitignore") - r.git.commit(message = "Test Commit", author = "Tester ") + 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 assert rt.fetch()