generated from kgod/ai-review-template
feat: initialize resume agent with OfferPai sync
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"""Tests for deterministic position-to-dimension weighting."""
|
||||
|
||||
from app.job_rubric import dimension_weights, position_family
|
||||
|
||||
|
||||
def test_position_family_alias_mapping():
|
||||
assert position_family("数据分析师") == "data"
|
||||
assert position_family("后端工程师") == "tech"
|
||||
assert position_family("产品经理") == "product"
|
||||
assert position_family("不存在的岗位") == "default"
|
||||
assert position_family(None) == "default"
|
||||
assert position_family("高级后端开发工程师") == "tech"
|
||||
|
||||
|
||||
def test_data_position_weights_quantified_outcome_highest():
|
||||
weights = dimension_weights("数据分析师")
|
||||
|
||||
assert weights["quantified_outcome"] == 3
|
||||
assert weights["quantified_outcome"] > weights["activity_execution"]
|
||||
Reference in New Issue
Block a user