Files
VacatureRadar/tests/unit/test_normalization.py
T
Jens b8091e59bd
deploy / deploy (push) Canceled after 0s
Initial deploy setup
2026-07-21 14:00:00 +02:00

16 lines
587 B
Python

from apps.jobs.services.normalization import (
infer_language,
normalize_employment_types,
normalize_title,
)
def test_title_and_employment_normalization():
assert normalize_title("Senior System Engineer (m/v/x) - Fulltime") == "senior system engineer"
assert normalize_employment_types(["FULL_TIME", "vast"]) == ["full_time", "permanent"]
def test_language_detection_is_conservative():
assert infer_language("Je beheert de infrastructuur en werkt met een team") == "nl"
assert infer_language("You manage the infrastructure and work with a team") == "en"