Fixed comment 4

This commit is contained in:
César Pérez
2025-06-07 21:13:16 +02:00
parent fe9afb826d
commit 3904743e85
2 changed files with 2 additions and 1 deletions

View File

@ -198,6 +198,7 @@ Example:
get_logger().warning(f"Error getting changelog file: {e}")
self.changelog_file_str = ""
self.changelog_file = ""
return
if not self.changelog_file_str:
self.changelog_file_str = self._get_default_changelog()

View File

@ -91,7 +91,7 @@ class TestPRUpdateChangelog:
# Assert
assert changelog_tool.changelog_file == ""
assert changelog_tool.changelog_file_str != "" # Should have default content
assert changelog_tool.changelog_file_str == "" # Exception should result in empty string, no default template
def test_prepare_changelog_update_with_existing_content(self, changelog_tool):
"""Test preparing changelog update when existing content exists."""