Declare READS for Oracle, Personio, Phenom, Pinpoint, Recruitee, Rippling, SmartRecruiters, SuccessFactors, Teamtailor, Workable and Workday
Every row carries places (Personio additionalOffices, Workable and Recruitee locations[], every SuccessFactors address, Workday's own read), the list teaser of Phenom and Oracle is kept in teaser, and the level, employment and country a host states are mapped. Workday "N Locations" and "Country - City", and Recruitee "Remote job", are no longer places. Phenom takes dateCreated as posted. robots_page and ROBOTS_ANY_CASE go; READS.robots records the decision. Signatures are feed_url(slug, ask) and page(get, slug, cursor, ask), with an empty Ask as the default so the runner of today still calls them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c0da58da7
commit
4316624769
42 files changed
+3126
-199
No files matched your search
@@ -46,7 +46,8 @@ def test_rows_carry_the_listing_fields() -> None:
|
||||
assert first["title"] == "Supply Chain Program Manager"
|
||||
assert first["url"] == f"https://{HOST}/hcmUI/CandidateExperience/en/sites/CX_1/job/39905"
|
||||
assert first["posted"] is not None and first["posted"].isoformat() == "2026-09-28T00:00:00+00:00"
|
||||
assert first["description"].startswith("Nokia is searching for a Supply Chain Program")
|
||||
assert first["description"] == "" # the text comes with the role's own read
|
||||
assert first["teaser"].startswith("Nokia is searching for a Supply Chain Program")
|
||||
assert first["salary_text"] == "" and "salary_min" not in first
|
||||
assert all(is_web_url(r["url"]) for r in rows)
|
||||
|
||||
@@ -58,6 +59,17 @@ def test_the_locations_are_the_primary_and_the_secondary_ones() -> None:
|
||||
assert rows[2]["location"] == "India"
|
||||
|
||||
|
||||
def test_every_place_is_kept_with_its_work_mode_and_the_countrys_code() -> None:
|
||||
rows = _rows()
|
||||
assert [p["text"] for p in rows[1]["places"]] == [
|
||||
"Malaysia", "Philippines", "Indonesia", "Thailand"]
|
||||
assert [p["remote"] for p in rows[0]["places"]] == [False, False] # hybrid
|
||||
assert [p["remote"] for p in rows[4]["places"]] == [True] # remote
|
||||
assert [p["remote"] for p in rows[3]["places"]] == [None] # states none
|
||||
# One country when the places share one, none over several.
|
||||
assert [r["country"] for r in rows] == [None, None, "IN", "DE", "US"]
|
||||
|
||||
|
||||
def test_remote_follows_the_workplace_type_code() -> None:
|
||||
assert [r["remote"] for r in _rows()] == ["hybrid", "hybrid", "onsite", None, "remote"]
|
||||
|
||||
@@ -237,11 +249,11 @@ def test_only_the_pod_named_by_the_slug_is_allowed() -> None:
|
||||
assert ats._allowed_host("oracle", SLUG)(HOST)
|
||||
|
||||
|
||||
def test_the_careers_page_is_the_candidate_site_and_robots_reads_it() -> None:
|
||||
def test_the_careers_page_is_the_candidate_site() -> None:
|
||||
url = f"https://{HOST}/hcmUI/CandidateExperience/en/sites/CX_1/jobs"
|
||||
assert oracle.careers_url(SLUG) == ats.careers_url(f"oracle:{SLUG}") == url
|
||||
assert oracle.robots_page(SLUG) == url
|
||||
assert oracle.allowed(SLUG)(httpx.URL(oracle.robots_page(SLUG)).host)
|
||||
assert oracle.allowed(SLUG)(httpx.URL(url).host)
|
||||
assert not hasattr(oracle, "robots_page") # decided when built, see READS.robots
|
||||
|
||||
|
||||
def test_a_slug_written_with_capitals_names_the_same_pod() -> None:
|
||||
|
||||
Reference in new issue
Block a user