This commit is contained in:
@@ -63,6 +63,18 @@ def test_hard_title_exclusion_wins(matching_job, profile):
|
||||
assert any("sales" in reason.lower() for reason in result.hard_exclusions)
|
||||
|
||||
|
||||
def test_non_it_vacancy_is_hidden_for_it_profile(matching_job, profile):
|
||||
matching_job.original_title = "Spontane sollicitatie - logopedist"
|
||||
matching_job.normalized_title = "spontane sollicitatie logopedist"
|
||||
matching_job.description_text = "Werk met het digitale patiëntendossier in ons ziekenhuis."
|
||||
|
||||
result = calculate_score(matching_job, profile)
|
||||
|
||||
assert result.recommendation == ScoreRun.Recommendation.HIDDEN
|
||||
assert any("Geen aantoonbaar IT-signaal" in reason for reason in result.hard_exclusions)
|
||||
assert result.evidence["it_relevance"]["relevant"] is False
|
||||
|
||||
|
||||
def test_distance_boundary_inclusief(matching_job, profile, monkeypatch):
|
||||
profile.max_distance_km = 50
|
||||
profile.save(update_fields=["max_distance_km"])
|
||||
|
||||
Reference in New Issue
Block a user