Skip to content

Commit c22680c

Browse files
committed
fix: Update import path for get_placard_version_string
Fixed import in DiffStix.placard() to use the correct module path after removing backward compatibility layer. **Changes:** - Changed import from changelog_helper to formatters.html_output - get_placard_version_string is defined in formatters/html_output.py **Test Results:** - 132/133 tests passing (99.2%) - Only failure is test_get_new_changelog_md_file_write_error (known permission issue)
1 parent c7d5816 commit c22680c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mitreattack/diffStix/core/diff_stix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ def placard(self, stix_object: dict, section: str, domain: str) -> str:
10501050
Final return string to be displayed in the Changelog.
10511051
"""
10521052
# Import here to avoid circular dependency
1053-
from mitreattack.diffStix.changelog_helper import get_placard_version_string
1053+
from mitreattack.diffStix.formatters.html_output import get_placard_version_string
10541054

10551055
datastore_version = "old" if section == "deletions" else "new"
10561056
placard_string = ""

0 commit comments

Comments
 (0)