Integration check: wp-p-prep with wp-r1-raw and wp-r2-raw
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>
This commit is contained in:
commit
55757c41e5
51 files changed
+445
-502
No files matched your search
@@ -0,0 +1,5 @@
|
||||
"""Oracle Recruiting Cloud's words, for prep."""
|
||||
|
||||
#: `WorkplaceTypeCode` -> `REMOTE`'s words. A role that states none has an
|
||||
#: empty code, which stays unknown.
|
||||
REMOTE = {"ora_remote": "remote", "ora_hybrid": "hybrid", "ora_on_site": "onsite"}
|
||||
@@ -0,0 +1,11 @@
|
||||
"""Personio's words, for prep."""
|
||||
|
||||
#: `seniority`. `experienced` is what most roles say and names no level.
|
||||
SENIORITY = {"entry-level": "junior", "student": "intern", "executive": "exec",
|
||||
"experienced": ""}
|
||||
|
||||
#: `employment` is the feed's `employmentType`, or, for a `permanent` one
|
||||
#: (which says nothing about the hours), its `schedule`.
|
||||
EMPLOYMENT = {"temporary": "temporary", "freelance": "contract", "intern": "internship",
|
||||
"working_student": "internship", "trainee": "internship",
|
||||
"permanent": "", "full-time": "full_time", "part-time": "part_time"}
|
||||
@@ -0,0 +1,5 @@
|
||||
"""Phenom's words, for prep."""
|
||||
|
||||
#: The words a page's `checkRemote` says (King's pages say "On-site"; no
|
||||
#: other was seen).
|
||||
REMOTE = {"remote": "remote", "hybrid": "hybrid", "on-site": "onsite", "onsite": "onsite"}
|
||||
@@ -0,0 +1,13 @@
|
||||
"""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"
|
||||
@@ -0,0 +1,16 @@
|
||||
"""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"
|
||||
@@ -0,0 +1,9 @@
|
||||
"""Rippling's words, for prep."""
|
||||
|
||||
#: The words of `employmentType.label` (`SALARIED_FT`), which is split at
|
||||
#: "_" and the first token found here decides. The fixtures hold one whole
|
||||
#: label only, so this is a table of tokens (lowercased), not whole words.
|
||||
MATCH = [("ft", "full_time"), ("pt", "part_time"), ("intern", "internship"),
|
||||
("internship", "internship"), ("contract", "contract"), ("contractor", "contract"),
|
||||
("temp", "temporary"), ("temporary", "temporary"), ("seasonal", "temporary")]
|
||||
MATCH_MODE = "token"
|
||||
@@ -0,0 +1,11 @@
|
||||
"""SmartRecruiters' words, for prep."""
|
||||
|
||||
#: `experienceLevel.id`. The three in the middle name no level ("associate" is
|
||||
#: half of Bosch's roles) and are known, so they map to none.
|
||||
SENIORITY = {"internship": "intern", "entry_level": "junior", "director": "director",
|
||||
"executive": "exec", "associate": "", "mid_senior_level": "",
|
||||
"not_applicable": ""}
|
||||
|
||||
#: `typeOfEmployment.id`.
|
||||
EMPLOYMENT = {"permanent": "", "intern": "internship", "temporary": "temporary",
|
||||
"contract": "contract", "part_time": "part_time", "full_time": "full_time"}
|
||||
@@ -0,0 +1,7 @@
|
||||
"""Teamtailor's words, for prep."""
|
||||
|
||||
#: `remoteStatus`. `none` says nothing about where the role is worked and
|
||||
#: `temporary` is remote for a spell only, so both are known and stay
|
||||
#: unknown rather than become "onsite" or "remote".
|
||||
REMOTE = {"fully": "remote", "hybrid": "hybrid", "onsite": "onsite",
|
||||
"none": "", "temporary": ""}
|
||||
@@ -0,0 +1,8 @@
|
||||
"""Workable's words, for prep."""
|
||||
|
||||
#: `workplace`.
|
||||
REMOTE = {"remote": "remote", "hybrid": "hybrid", "on_site": "onsite"}
|
||||
|
||||
#: `type`.
|
||||
EMPLOYMENT = {"full": "full_time", "part": "part_time", "contract": "contract",
|
||||
"temporary": "temporary", "internship": "internship"}
|
||||
@@ -0,0 +1,10 @@
|
||||
"""Workday's words, for prep."""
|
||||
|
||||
#: `remoteType`. Only some tenants send it, and each words it its own way
|
||||
#: (Zendesk's "Fully Flexible", Axis' "On-Site"); a word not listed, a bare
|
||||
#: "No" among them, says nothing and stays unknown.
|
||||
REMOTE = {"remote": "remote", "fully flexible": "remote", "hybrid": "hybrid",
|
||||
"in office": "onsite", "on-site": "onsite", "onsite": "onsite"}
|
||||
|
||||
#: `timeType`.
|
||||
EMPLOYMENT = {"full time": "full_time", "part time": "part_time"}
|
||||
Reference in new issue
Block a user