From 65526baeefddad523ad6bcb3f83fe3a3322e797e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 10 Aug 2024 08:53:03 -0700 Subject: [PATCH] fix: Add newline to initial commit message --- tests/basic/test_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 51cff4f04..9aa6d4df5 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -809,9 +809,9 @@ class TestCommands(TestCase): # Create and commit a file filename = "test_file.txt" file_path = Path(repo_dir) / filename - file_path.write_text("Initial content") + file_path.write_text("Initial content\n") repo.git.add(filename) - repo.git.commit("-m", "Initial commit") + repo.git.commit("-m", "Initial commit\n") # Modify the file to make it dirty file_path.write_text("Modified content") @@ -832,6 +832,7 @@ class TestCommands(TestCase): diff_output = mock_print.call_args[0][0] self.assertIn("-Initial content", diff_output) self.assertIn("+Modified content", diff_output) + dump(diff_output) def test_cmd_ask(self): io = InputOutput(pretty=False, yes=True)