feat: improve resume optimization and import reliability

This commit is contained in:
hyp
2026-08-10 11:26:47 +08:00
parent 1c762fd092
commit d8db0d8792
35 changed files with 1861 additions and 661 deletions
+2 -2
View File
@@ -243,7 +243,7 @@ def test_rule_expander_uses_highlights() -> None:
def test_rule_expander_falls_back_to_description() -> None:
expander = RuleBasedEntryExpander()
proposal = expander.expand({"description": "Handled A. Improved B."}, context={})
assert proposal["optimized_description"].startswith("Handled A. Improved B.")
assert proposal["optimized_description"] == "Handled A. Improved B."
def test_rule_expander_empty_when_no_material() -> None:
@@ -320,4 +320,4 @@ def test_profile_refresh_retains_imported_sections_and_unmatched_entries() -> No
assert sections["project_experience"]["items"][0]["project_name"] == "Imported Project"
assert any(item["school"] == "Manual University" for item in sections["education"]["items"])
assert refreshed["profile_summary"]["content"] == "Imported personal summary."
assert refreshed["profile_summary"]["stale"] is True
assert refreshed["profile_summary"]["stale"] is True