Skip to content

Commit bde1c43

Browse files
test(git): add test that checks GitCommit.message with empty body
1 parent 75d3938 commit bde1c43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_git.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ def test_get_tag_names(mocker):
4747
"commitizen.cmd.run", return_value=FakeCommand(out="", err="No tag available")
4848
)
4949
assert git.get_tag_names() == []
50+
51+
52+
def test_git_message_with_empty_body():
53+
commit_title = "Some Title"
54+
commit = git.GitCommit("test_rev", "Some Title", body="")
55+
56+
assert commit.message == commit_title

0 commit comments

Comments
 (0)