@@ -0,0 +1,15 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user