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>
14 lines
710 B
Python
14 lines
710 B
Python
"""Pinpoint's words, for prep."""
|
|
|
|
#: `workplace_type`. Anything else says nothing.
|
|
REMOTE = {"onsite": "onsite", "on_site": "onsite", "hybrid": "hybrid", "remote": "remote"}
|
|
|
|
#: What `employment_type` (`permanent_full_time`, `fixed_term_full_time`)
|
|
#: says, matched by fragment: the first fragment found in the lowercased
|
|
#: word decides, so a contract type beats the hours. The fixtures hold two
|
|
#: whole words only, so this is not turned into a whole-word table.
|
|
MATCH = [("intern", "internship"), ("freelance", "contract"), ("contract", "contract"),
|
|
("fixed_term", "temporary"), ("temporary", "temporary"),
|
|
("part_time", "part_time"), ("full_time", "full_time")]
|
|
MATCH_MODE = "substring"
|