@@ -1160,25 +1160,19 @@ def test_tgit_commit_with_bytes_message_encoding_error(self):
11601160 """Test TGITCommit with bytes message that has encoding issues."""
11611161 mock_repo = Mock ()
11621162 mock_repo .git .rev_parse .return_value = "abc1234"
1163-
1163+
11641164 mock_commit = Mock ()
11651165 mock_commit .message = "feat: test message" # Use valid UTF-8 string since bytes handling is in get_commits
11661166 mock_commit .author .name = "Test Author"
11671167 mock_commit .author .email = "test@example.com"
11681168 mock_commit .committed_datetime = Mock ()
11691169 mock_commit .hexsha = "abcdef123456"
1170-
1171- message_dict = {
1172- "emoji" : "✨" ,
1173- "type" : "feat" ,
1174- "scope" : None ,
1175- "description" : "test message" ,
1176- "breaking" : None
1177- }
1178-
1170+
1171+ message_dict = {"emoji" : "✨" , "type" : "feat" , "scope" : None , "description" : "test message" , "breaking" : None }
1172+
11791173 # This should handle the commit creation properly
11801174 tgit_commit = TGITCommit (mock_repo , mock_commit , message_dict )
1181-
1175+
11821176 # Should not raise an exception and should have the correct properties
11831177 assert tgit_commit .type == "feat"
11841178 assert tgit_commit .description == "test message"
@@ -1188,10 +1182,10 @@ def test_get_remote_uri_safe_basic(self):
11881182 """Test _get_remote_uri_safe basic functionality."""
11891183 mock_repo = Mock ()
11901184 mock_repo .remote .side_effect = ValueError ("No remote found" )
1191-
1185+
11921186 # Should return None when no remote is found
11931187 result = _get_remote_uri_safe (mock_repo )
1194-
1188+
11951189 assert result is None
11961190
11971191 def test_extract_latest_tag_from_changelog_malformed_file (self , tmp_path ):
@@ -1203,9 +1197,9 @@ def test_extract_latest_tag_from_changelog_malformed_file(self, tmp_path):
12031197This is not a proper changelog
12041198No version tags here
12051199""" )
1206-
1200+
12071201 result = extract_latest_tag_from_changelog (str (changelog_file ))
1208-
1202+
12091203 # Should return None for malformed changelog
12101204 assert result is None
12111205
@@ -1214,7 +1208,7 @@ def test_commit_pattern_with_unicode_message(self):
12141208 # Test with unicode characters in commit message
12151209 message = "feat: add 中文 支持 for internationalization"
12161210 match = commit_pattern .match (message )
1217-
1211+
12181212 assert match is not None
12191213 assert match .group ("type" ) == "feat"
12201214 assert "中文 支持" in match .group ("description" )
0 commit comments