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
@@ -116,7 +116,7 @@ def test_the_board_is_read_through_the_app_and_is_complete() -> None:
|
||||
def test_the_slug_the_urls_and_the_allow_list() -> None:
|
||||
assert pinpoint.slug_ok("xeneta") and pinpoint.slug_ok("Xeneta") and pinpoint.slug_ok("a-b1")
|
||||
assert pinpoint.careers_url("xeneta") == "https://xeneta.pinpointhq.com/"
|
||||
assert pinpoint.robots_page("xeneta") == "https://xeneta.pinpointhq.com/"
|
||||
assert not hasattr(pinpoint, "robots_page") # decided when built, see READS.robots
|
||||
assert pinpoint.feed_url("Xeneta") == "https://xeneta.pinpointhq.com/postings.json"
|
||||
allow = pinpoint.allowed("Xeneta")
|
||||
assert allow("xeneta.pinpointhq.com") and allow("XENETA.pinpointhq.com")
|
||||
@@ -153,3 +153,17 @@ def test_a_pinpoint_board_is_not_probed() -> None:
|
||||
assert not hasattr(pinpoint, "probe_url")
|
||||
|
||||
|
||||
|
||||
|
||||
def test_a_role_has_its_one_place_with_the_work_mode_of_the_role() -> None:
|
||||
rows = pinpoint.parse((FIXTURES / "pinpoint.json").read_bytes(), "xeneta")
|
||||
assert rows[0]["places"] == [{"text": "Bucharest", "remote": False}] # hybrid
|
||||
assert rows[0]["location"] == "Bucharest"
|
||||
|
||||
|
||||
def test_employment_is_read_from_the_type_and_an_unknown_one_is_left() -> None:
|
||||
rows = pinpoint.parse((FIXTURES / "pinpoint.json").read_bytes(), "xeneta")
|
||||
assert [r["employment"] for r in rows] == ["full_time", "temporary"]
|
||||
assert pinpoint._employment("permanent_part_time") == "part_time"
|
||||
assert pinpoint._employment("internship") == "internship"
|
||||
assert pinpoint._employment("something_new") is None
|
||||
Reference in new issue
Block a user