Files
jobboard/tests/test_prep_hosts_smartrecruiters.py

23 lines
873 B
Python

"""SmartRecruiters' word tables for prep: the host's ids, and what they mean."""
from __future__ import annotations
import importlib
smartrecruiters = importlib.import_module("app.prep.hosts.smartrecruiters")
def test_experience_levels_read() -> None:
seniority = smartrecruiters.SENIORITY
assert [seniority[w] for w in ("internship", "entry_level", "director", "executive")] == [
"intern", "junior", "director", "exec"]
# Known, and naming no level.
assert [seniority[w] for w in ("associate", "mid_senior_level", "not_applicable")] == [""] * 3
assert "guru" not in seniority
def test_employment_types_read() -> None:
employment = smartrecruiters.EMPLOYMENT
assert employment["intern"] == "internship" and employment["permanent"] == ""
assert employment["full_time"] == "full_time" and employment["part_time"] == "part_time"