"""Personio's word tables for prep: the feed's own words, and what they mean.""" from __future__ import annotations import importlib personio = importlib.import_module("app.prep.hosts.personio") def test_seniority_words_read() -> None: seniority = personio.SENIORITY assert [seniority[w] for w in ("entry-level", "executive", "student")] == [ "junior", "exec", "intern"] assert seniority["experienced"] == "" # known, names no level assert "wizard" not in seniority def test_employment_words_read_from_the_contract_or_the_schedule() -> None: employment = personio.EMPLOYMENT assert employment["working_student"] == "internship" and employment["freelance"] == "contract" assert employment["permanent"] == "" assert employment["full-time"] == "full_time" and employment["part-time"] == "part_time"