@@ -115,7 +115,7 @@ def test_empty_commit_msg_but_comments(mock_ini, mock_commit_msg_file, cli_runne
115
115
assert "Commit message is empty." in result .output
116
116
117
117
118
- @pytest .mark .parametrize ("commit_msg" , ["message" , "tag" , "tag-" , "#tag" , "#tag-123" ])
118
+ @pytest .mark .parametrize ("commit_msg" , ["message" , "message tag" , "message tag-" , "message #tag" , "message #tag-123" , "tag message" , "tag- message " ])
119
119
def test_missing_tag (commit_msg , mock_ini , mock_commit_msg_file , cli_runner ):
120
120
"""Assert error on missing tag."""
121
121
mock_commit_msg_file .write_text (commit_msg )
@@ -128,7 +128,7 @@ def test_missing_tag(commit_msg, mock_ini, mock_commit_msg_file, cli_runner):
128
128
assert "'TAG' tag not found" in result .output
129
129
130
130
131
- @pytest .mark .parametrize ("commit_msg" , ["TAG" , "TAG-" , "#TAG" , "#TAG-" ])
131
+ @pytest .mark .parametrize ("commit_msg" , ["message TAG" , "message TAG-" , "message #TAG" , "message #TAG-" , "TAG message" , "TAG- message " ])
132
132
def test_missing_tag_number (commit_msg , mock_ini , mock_commit_msg_file , cli_runner ):
133
133
"""Assert error on missing tag number."""
134
134
mock_commit_msg_file .write_text (commit_msg )
0 commit comments