Resolves tests/test_readers_shared.py, adds MATCH_MODE to the pinpoint, recruitee and rippling tables, and removes table_word, country_if_single and remote_word from plugins/readers/_shared.py with their tests and the Helpers paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
804 B
Python
17 lines
804 B
Python
"""Recruitee's words, for prep."""
|
|
|
|
#: `experience_code`. `experienced` names no level and is known, so it maps
|
|
#: to none.
|
|
SENIORITY = {"student_school": "intern", "entry_level": "junior", "mid_level": "mid",
|
|
"experienced": ""}
|
|
|
|
#: The words of `employment_type_code` (`fulltime_permanent`), which is
|
|
#: lowercased and split at "_" and "-"; the first entry found among its words
|
|
#: decides, so a contract type beats the hours. The fixtures hold three whole
|
|
#: codes only, so this is a table of words, not whole codes.
|
|
MATCH = [("internship", "internship"), ("intern", "internship"),
|
|
("freelance", "contract"), ("contract", "contract"),
|
|
("temporary", "temporary"), ("fixed", "temporary"),
|
|
("parttime", "part_time"), ("fulltime", "full_time")]
|
|
MATCH_MODE = "token"
|