Require READS, search params and a dated robots record; record robots.txt per requested path
Every reader declares, so undeclared(), the scope() fallback, robots_page and ROBOTS_ANY_CASE go. A search provider needs PARAMS and clean_params, a row may carry company, places gains none. Each robots record names the paths the reader requests, from robots.txt read again on 2026-09-30. Platsbanken states remote, HR Manager states no place. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
4e827665dd
commit
2349fc424b
46 files changed
+323
-100
No files matched your search
+55
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>CDL Driver Recruiter - Einride | Jobylon</title>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "JobPosting",
|
||||
"datePosted": "2026-09-22T11:58:11+00:00",
|
||||
"description": "<p>Want to be part of transforming road freight? Einride is showing the world a new way to move, based on the latest digital, autonomous and electric technologies. We build the technology that hauls freight efficiently, and we put it to work for the world's leading manufacturers, retailers, logistics providers and defense organizations, all working toward a future where moving goods costs less for our customers, and less for the planet.</p>",
|
||||
"hiringOrganization": {
|
||||
"@type": "Organization",
|
||||
"name": "Einride",
|
||||
"sameAs": ""
|
||||
},
|
||||
"title": "CDL Driver Recruiter",
|
||||
"jobLocation": [
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Houston, TX, USA",
|
||||
"addressLocality": "Houston",
|
||||
"url": "https://maps.google.com/?cid=14559296326948160827"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Dallas, TX, USA",
|
||||
"addressLocality": "Dallas",
|
||||
"url": "https://maps.google.com/?cid=13397254124329199503"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "New Jersey, USA",
|
||||
"addressLocality": "",
|
||||
"url": "https://maps.google.com/?cid=3229779156937960845"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Atlanta, GA, USA",
|
||||
"addressLocality": "Atlanta",
|
||||
"url": "https://maps.google.com/?cid=7421613531965645579"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
</head><body></body></html>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>Financial Controller - Einride | Jobylon</title>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "JobPosting",
|
||||
"datePosted": "2026-09-25T13:59:14+00:00",
|
||||
"description": "<p>Want to be part of transforming road freight? Einride is showing the world a new way to move, based on the latest digital, autonomous and electric technologies. We build the technology that hauls freight efficiently, and we put it to work for the world's leading manufacturers, retailers, logistics providers and defense organizations, all working toward a future where moving goods costs less for our customers, and less for the planet.</p>",
|
||||
"hiringOrganization": {
|
||||
"@type": "Organization",
|
||||
"name": "Einride",
|
||||
"sameAs": ""
|
||||
},
|
||||
"title": "Financial Controller",
|
||||
"jobLocation": [
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Stockholm, Sweden",
|
||||
"addressLocality": "Stockholm",
|
||||
"url": "https://maps.google.com/?cid=12109378761999087462"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
</head><body></body></html>
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"uuid": "0fbcec57-3012-4271-96bf-12b145cf6dea",
|
||||
"name": "General Applications: Engineering",
|
||||
"description": {
|
||||
"company": "<meta><h3 style=\"font-family:"Basel Grotesk",Arial,sans-serif;line-height:1.6;font-size:13.5pt;font-weight:600;letter-spacing:0.25px;margin-top:14px;margin-bottom:4px;text-align:start;padding-left:0px;\"><b><strong style=\"white-space:pre-wrap;\">Not finding the perfect engineering role on our careers page?</strong></b></h3><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11.25pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;\"><span style=\"white-space:pre-wrap;\">We are constantly seeking talented individuals to join our team. If you are a Software Engineer and haven\u2019t found the perfect role on our careers page, don\u2019t worry \u2014 you\u2019ve come to the right place.</span></p><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11.25pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;\"><br></p><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11.25pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;\"><span style=\"white-space:pre-wrap;\">We strongly believe that each person has something unique to bring to the table. Whether you\u2019re a recent graduate or a seasoned professional, we\u2019re genuinely excited to hear from you. At Prisma, we work with modern technologies, including </span><b><strong style=\"white-space:pre-wrap;\">TypeScript</strong>",
|
||||
"role": "<meta><h3 style=\"font-family:"Basel Grotesk",Arial,sans-serif;line-height:1.6;font-size:13.5pt;font-weight:600;letter-spacing:0.25px;margin-top:14px;margin-bottom:4px;text-align:start;padding-left:0px;\"><b><strong style=\"white-space:pre-wrap;\">What is it like to work at Prisma?</strong></b></h3><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11.25pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;text-align:start;\"><span style=\"white-space:pre-wrap;\">You're likely to be a great fit for the team if you ...</span></p><ul data-pattern=\"discCircleSquare\" data-depth=\"1\" style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11pt;font-weight:400;margin:8px 0px;line-height:1.6;padding:0px 0px 0px 32px;list-style-type:disc;\"><li style=\"font-size:11pt;margin:3px 0px;letter-spacing:0.25px;line-height:1.6;\"><b><strong style=\"white-space:pre-wrap;\">... have an ownership mindset.</strong></b><span style=\"white-space:pre-wrap;\"> As part of a small team, you'll have an outsize impact on decisions and the way things are executed.</span></li><li style=\"font-size:11pt;margin:3px 0px;letter-spacing:0.25px;line-height:1.6;\"><b><strong style=\"white-space:pre-wrap;\">... stay nimble.</strong></b><span style=\"white-space:pre-wrap;\"> As a growing startup, the team and strategy evolves quickly. Be ready to re-calibrate often and stay flexible.</span></p></div>"
|
||||
},
|
||||
"workLocations": [
|
||||
"Remote (Germany)"
|
||||
],
|
||||
"department": {
|
||||
"name": "Engineering",
|
||||
"base_department": "Engineering",
|
||||
"department_tree": [
|
||||
"Engineering"
|
||||
]
|
||||
},
|
||||
"employmentType": {
|
||||
"label": "SALARIED_FT",
|
||||
"id": "Full-Time Employee"
|
||||
},
|
||||
"createdOn": "2024-11-14T01:57:03.744000-08:00",
|
||||
"eeocQuestionnaireEnabled": false,
|
||||
"eeocQuestionnaireEnabledForJobPost": false,
|
||||
"url": "https://ats.rippling.com/prisma-careers/jobs/0fbcec57-3012-4271-96bf-12b145cf6dea",
|
||||
"board": {
|
||||
"boardType": "RIPPLING",
|
||||
"slug": "prisma-careers",
|
||||
"banner": {
|
||||
"name": "",
|
||||
"url": null,
|
||||
"type": ""
|
||||
},
|
||||
"title": "Join Prisma",
|
||||
"subtitle": "At Prisma, we are building the data layer for modern apps. Join our distributed team, backed by top investors, with 380k+ users!",
|
||||
"boardURL": "https://ats.rippling.com/prisma-careers/jobs",
|
||||
"fontType": "ARIAL_SANS_SERIF",
|
||||
"linkColor": null,
|
||||
"buttonColor": "#5a67d8",
|
||||
"buttonTextColor": null,
|
||||
"noOpeningsMessage": null,
|
||||
"groupJobsByLocation": true,
|
||||
"showBoardLogoOnJobPost": false,
|
||||
"showCompanyInfoUnderJobPost": false,
|
||||
"companyName": "Prisma Data, Inc."
|
||||
},
|
||||
"payRangeDetails": [],
|
||||
"applicationConfirmationTemplate": "66b4c6bc65d129d95c33c48b",
|
||||
"hasAIEvaluationsEnabled": false,
|
||||
"companyName": "Prisma Data, Inc.",
|
||||
"unlistedFromSearch": false,
|
||||
"jsonLd": null
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"uuid": "2f2ae4c8-ec56-4d1f-8f2a-0d295674e19c",
|
||||
"name": "Director of Engineering - Infrastructure",
|
||||
"description": {
|
||||
"company": "<meta><h2 style=\"font-family:"Basel Grotesk",Arial,sans-serif;line-height:1.6;font-size:15pt;font-weight:600;letter-spacing:0.5px;margin-top:18px;margin-bottom:4px;padding-left:0px;\"><b><strong style=\"white-space:pre-wrap;\">About Rippling</strong></b></h2><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;text-align:start;\"><span style=\"font-size:11pt;white-space:pre-wrap;\">Rippling gives businesses one place to run HR, IT, and Finance. It brings together all of the workforce systems that are normally scattered across a company, like payroll, expenses, benefits, and computers. For the first time ever, you can manage and automate every part of the employee lifecycle in a single system.</span></p><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;text-align:start;\"><span style=\"font-size:11pt;white-space:pre-wrap;\">Take onboarding, for example. With Rippling, you can hire a new employee anywhere in the world and set up their payroll, corporate card, computer, benefits, and even third-party apps like Slack and Microsoft 365\u2014all within 90 seconds.</span>",
|
||||
"role": "<meta><h2 style=\"font-family:"Basel Grotesk",Arial,sans-serif;line-height:1.6;font-size:15pt;font-weight:600;letter-spacing:0.5px;margin-top:18px;margin-bottom:4px;padding-left:0px;\"><b><strong style=\"white-space:pre-wrap;\">About The Role</strong></b></h2><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11.25pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;\"><br></p><p style=\"font-family:"Basel Grotesk",Arial,sans-serif;font-size:11pt;font-weight:400;line-height:1.6;letter-spacing:0.25px;margin:4px 0px;padding:0px;\"><span style=\"white-space:pre-wrap;\">Rippling Infrastructure operates as a scaled engineering organization responsible for the mission-critical systems that power every product and platform across the company. We support nearly 1,000 engineers globally and deliver the foundational infrastructure that enables Rippling's products to scale reliably and efficiently.</span></p></div>"
|
||||
},
|
||||
"workLocations": [
|
||||
"San Francisco, CA",
|
||||
"Seattle, WA",
|
||||
"New York, NY"
|
||||
],
|
||||
"department": {
|
||||
"name": "Platform",
|
||||
"base_department": "Engineering",
|
||||
"department_tree": [
|
||||
"Engineering",
|
||||
"Platform"
|
||||
]
|
||||
},
|
||||
"employmentType": {
|
||||
"label": "SALARIED_FT",
|
||||
"id": "Salaried, full-time"
|
||||
},
|
||||
"createdOn": "2025-04-07T12:29:19.348000-07:00",
|
||||
"eeocQuestionnaireEnabled": true,
|
||||
"eeocQuestionnaireEnabledForJobPost": true,
|
||||
"url": "https://ats.rippling.com/rippling/jobs/2f2ae4c8-ec56-4d1f-8f2a-0d295674e19c",
|
||||
"board": {
|
||||
"boardType": "CUSTOM",
|
||||
"slug": "rippling",
|
||||
"banner": null,
|
||||
"title": "Current Openings",
|
||||
"subtitle": null,
|
||||
"boardURL": "http://www.rippling.com/careers/open-roles",
|
||||
"fontType": null,
|
||||
"linkColor": null,
|
||||
"buttonColor": null,
|
||||
"buttonTextColor": null,
|
||||
"noOpeningsMessage": null,
|
||||
"groupJobsByLocation": false,
|
||||
"showBoardLogoOnJobPost": false,
|
||||
"showCompanyInfoUnderJobPost": false,
|
||||
"companyName": "Rippling"
|
||||
},
|
||||
"payRangeDetails": [
|
||||
{
|
||||
"location": "US Tier 1",
|
||||
"currency": "USD",
|
||||
"frequency": "YEAR",
|
||||
"rangeStart": 216000.0,
|
||||
"rangeEnd": 378000.0,
|
||||
"isRemote": false
|
||||
}
|
||||
],
|
||||
"applicationConfirmationTemplate": "6348729c5a9a6e6df0bb6f64",
|
||||
"hasAIEvaluationsEnabled": true,
|
||||
"companyName": "Rippling",
|
||||
"unlistedFromSearch": false,
|
||||
"jsonLd": null
|
||||
}
|
||||
@@ -35,10 +35,10 @@ def test_the_employment_type_is_the_hosts_word() -> None:
|
||||
assert (first["employment"], second["employment"]) == ("FullTime", "Contract")
|
||||
|
||||
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_no_robots_check() -> None:
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_its_robots_record() -> None:
|
||||
reads = ashby.READS
|
||||
assert (reads.listing, reads.text, reads.places, reads.empty) == (
|
||||
"whole", "listing", "many", "suspect")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.pay == "figures"
|
||||
assert reads.robots == "api: no robots.txt check needed (public board API), 2026-09-30"
|
||||
assert reads.robots.startswith("read: ") and "(checked 2026-09-30)" in reads.robots
|
||||
assert ashby.feed_url("acme", Ask()).endswith("/job-board/acme?includeCompensation=true")
|
||||
@@ -156,7 +156,6 @@ def test_it_declares_what_it_reads() -> None:
|
||||
assert (reads.listing, reads.text, reads.places, reads.fields.posted) == (
|
||||
"whole", "detail", "one", "trusted")
|
||||
assert reads.robots.startswith("read: robots.txt allows /careers")
|
||||
assert not hasattr(bamboohr, "robots_page")
|
||||
|
||||
|
||||
def test_the_slug_the_urls_and_the_allow_list() -> None:
|
||||
|
||||
@@ -113,7 +113,6 @@ def test_it_declares_a_whole_listing_read_from_the_page() -> None:
|
||||
assert (reads.listing, reads.text, reads.places, reads.complete) == (
|
||||
"whole", "listing", "many", "whole")
|
||||
assert reads.fields.pay == "line" and "/api/ is disallowed and not read" in reads.robots
|
||||
assert not hasattr(deel, "robots_page")
|
||||
|
||||
|
||||
# ------------------------------------------------------- slugs and hosts
|
||||
|
||||
@@ -210,5 +210,4 @@ def test_it_declares_a_paged_read_of_ten_with_a_total_and_one_country_a_request(
|
||||
"paged", 10, "detail", "stated", "many")
|
||||
assert reads.filters.declared() == {"country": "one", "query": "one"}
|
||||
assert reads.fields.posted == "listed"
|
||||
assert reads.robots.startswith("read: robots.txt allows /careers")
|
||||
assert not hasattr(eightfold, "robots_page")
|
||||
assert "/api/pcsx/search" in reads.robots and "/api/pcsx/position_details" in reads.robots
|
||||
@@ -103,8 +103,7 @@ def test_it_declares_one_page_that_may_be_empty_by_mistake() -> None:
|
||||
reads = gem.READS
|
||||
assert (reads.listing, reads.text, reads.places, reads.empty) == (
|
||||
"paged", "detail", "many", "suspect")
|
||||
assert reads.robots.startswith("read: robots.txt allows /<board>")
|
||||
assert not hasattr(gem, "robots_page")
|
||||
assert "POST /api/public/graphql" in reads.robots
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("body", "message"), [
|
||||
|
||||
@@ -43,10 +43,10 @@ def test_without_offices_the_name_is_the_place() -> None:
|
||||
assert nothing["places"] == [] and nothing["location"] == ""
|
||||
|
||||
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_no_robots_check() -> None:
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_its_robots_record() -> None:
|
||||
reads = greenhouse.READS
|
||||
assert (reads.listing, reads.text, reads.places) == ("whole", "listing", "many")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.pay == "figures"
|
||||
assert reads.robots == "api: no robots.txt check needed (public board API), 2026-09-30"
|
||||
assert reads.robots.startswith("read: ") and "(checked 2026-09-30)" in reads.robots
|
||||
assert greenhouse.feed_url("acme", Ask()).endswith("/boards/acme/jobs?content=true&pay_transparency=true")
|
||||
assert greenhouse.fallback_url("acme").endswith("/boards/acme/jobs")
|
||||
@@ -163,8 +163,7 @@ def test_it_declares_copies_with_a_page_and_a_robots_decision() -> None:
|
||||
reads = hibob.READS
|
||||
assert (reads.listing, reads.text, reads.places, reads.complete) == (
|
||||
"paged", "listing", "copies", "end")
|
||||
assert reads.robots.startswith("read: robots.txt allows")
|
||||
assert not hasattr(hibob, "robots_page")
|
||||
assert reads.robots.startswith("read: /api/job-ad")
|
||||
|
||||
|
||||
# ------------------------------------------------------- slugs and hosts
|
||||
|
||||
@@ -122,9 +122,8 @@ def test_the_feed_states_no_place_and_the_robots_decision_is_the_owners() -> Non
|
||||
assert all(r["places"] == [] for r in rows)
|
||||
reads = hrmanager.READS
|
||||
assert (reads.listing, reads.page_size, reads.text, reads.places) == (
|
||||
"paged", 100, "listing", "one")
|
||||
assert reads.robots == "disallowed by robots.txt; owner to decide"
|
||||
assert not hasattr(hrmanager, "robots_page")
|
||||
"paged", 100, "listing", "none")
|
||||
assert "api.hr-manager.net" in reads.robots and "owner, 2026-09-29" in reads.robots
|
||||
|
||||
|
||||
# ------------------------------------------------------- slugs and hosts
|
||||
|
||||
@@ -184,4 +184,3 @@ def test_it_declares_a_paged_read_with_a_total_and_many_places() -> None:
|
||||
assert (reads.listing, reads.page_size, reads.text, reads.complete, reads.places) == (
|
||||
"paged", 100, "listing", "stated", "many")
|
||||
assert reads.fields.country == "stated" and reads.robots.startswith("read: robots.txt")
|
||||
assert not hasattr(jibe, "robots_page")
|
||||
@@ -87,8 +87,8 @@ def _get(pages: dict[str, bytes], asked: list[str] | None = None) -> Any:
|
||||
def test_detail_reads_the_role_pages_json_ld() -> None:
|
||||
rows = {r["source_id"]: r for r in jobylon.parse(BOARD, "3143")}
|
||||
asked: list[str] = []
|
||||
pages = {ROLE: (FIXTURES / "jobylon-role.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-role-2.html").read_bytes()}
|
||||
pages = {ROLE: (FIXTURES / "jobylon-detail.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-detail-2.html").read_bytes()}
|
||||
first = jobylon.detail(_get(pages, asked), "3143", rows["385191"])
|
||||
assert asked == [ROLE]
|
||||
assert set(first) <= set(ats.DETAIL_FIELDS) | {"places"}
|
||||
@@ -116,8 +116,8 @@ def test_detail_without_a_job_posting_fails_the_read() -> None:
|
||||
|
||||
def test_the_board_is_one_request_and_each_role_is_read_on_its_own_page() -> None:
|
||||
asked: list[str] = []
|
||||
pages = {FEED: BOARD, ROLE: (FIXTURES / "jobylon-role.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-role-2.html").read_bytes()}
|
||||
pages = {FEED: BOARD, ROLE: (FIXTURES / "jobylon-detail.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-detail-2.html").read_bytes()}
|
||||
get = _get(pages, asked)
|
||||
rows = jobylon.parse(get(jobylon.feed_url("3143", Ask())), "3143")
|
||||
assert len(rows) == 5 and asked == [FEED]
|
||||
@@ -150,8 +150,7 @@ def test_it_declares_a_whole_listing_with_a_teaser_and_detail() -> None:
|
||||
assert (reads.listing, reads.text, reads.teaser, reads.places) == (
|
||||
"whole", "detail", True, "many")
|
||||
assert (reads.fields.posted, reads.fields.seniority) == ("trusted", "stated")
|
||||
assert reads.robots.startswith("read: robots.txt allows /jobs/companies/")
|
||||
assert not hasattr(jobylon, "robots_page")
|
||||
assert "/jobs/companies/<id>/embed/v2/" in reads.robots
|
||||
|
||||
|
||||
# ------------------------------------------------------- slugs and hosts
|
||||
|
||||
@@ -33,9 +33,9 @@ def test_the_commitment_is_the_hosts_word() -> None:
|
||||
assert several["employment"] == "Full-time" and one["employment"] == "Permanent"
|
||||
|
||||
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_no_robots_check() -> None:
|
||||
def test_it_declares_a_whole_listing_of_trusted_dates_and_its_robots_record() -> None:
|
||||
reads = lever.READS
|
||||
assert (reads.listing, reads.text, reads.places) == ("whole", "listing", "many")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.country == "stated"
|
||||
assert reads.robots == "api: no robots.txt check needed (public board API), 2026-09-30"
|
||||
assert reads.robots.startswith("read: ") and "(checked 2026-09-30)" in reads.robots
|
||||
assert lever.feed_url("eu/tomtom", Ask()) == "https://api.eu.lever.co/v0/postings/tomtom?mode=json"
|
||||
@@ -253,7 +253,6 @@ 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.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:
|
||||
|
||||
@@ -24,8 +24,7 @@ def test_the_declaration_says_what_the_feed_gives() -> None:
|
||||
reads = personio.READS
|
||||
assert (reads.listing, reads.places, reads.text) == ("whole", "many", "listing")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.seniority == "stated"
|
||||
assert reads.robots.startswith("api: no robots.txt check needed")
|
||||
assert not hasattr(personio, "robots_page")
|
||||
assert reads.robots.startswith("read: /xml")
|
||||
assert personio.feed_url("acme", Ask()) == "https://acme.jobs.personio.de/xml"
|
||||
|
||||
|
||||
|
||||
@@ -289,7 +289,6 @@ def test_the_careers_page_is_the_search_page() -> None:
|
||||
url = "https://careers.king.com/us/en/search-results"
|
||||
assert phenom.careers_url(SLUG) == ats.careers_url(f"phenom:{SLUG}") == url
|
||||
assert phenom.allowed(SLUG)(httpx.URL(url).host)
|
||||
assert not hasattr(phenom, "robots_page") # decided when built, see READS.robots
|
||||
assert phenom.careers_url("www.careers.philips.com/global/en") == \
|
||||
"https://www.careers.philips.com/global/en/search-results"
|
||||
|
||||
|
||||
@@ -116,7 +116,6 @@ 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 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")
|
||||
|
||||
@@ -25,7 +25,7 @@ def test_the_declaration_says_what_the_feed_gives() -> None:
|
||||
reads = recruitee.READS
|
||||
assert (reads.listing, reads.places, reads.text) == ("whole", "many", "listing")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.country == "none"
|
||||
assert reads.robots.startswith("api: no robots.txt check needed")
|
||||
assert "/api/offers/ is allowed" in reads.robots
|
||||
assert recruitee.feed_url("acme", Ask()) == "https://acme.recruitee.com/api/offers/"
|
||||
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ def _get(answer: bytes, asked: list[str] | None = None) -> Any:
|
||||
def test_detail_reads_description_places_date_and_a_single_yearly_range() -> None:
|
||||
row = {r["source_id"]: r for r in rippling.parse(BOARD, "rippling")}[DIRECTOR]
|
||||
asked: list[str] = []
|
||||
found = rippling.detail(_get((FIXTURES / "rippling-role.json").read_bytes(), asked),
|
||||
found = rippling.detail(_get((FIXTURES / "rippling-detail.json").read_bytes(), asked),
|
||||
"rippling", row)
|
||||
assert asked == [f"https://api.rippling.com/platform/api/ats/v1/board/rippling/jobs/{DIRECTOR}"]
|
||||
assert found["description"].startswith("About The Role")
|
||||
@@ -96,7 +96,7 @@ def test_detail_reads_description_places_date_and_a_single_yearly_range() -> Non
|
||||
|
||||
|
||||
def test_detail_without_pay_leaves_the_pay_columns_out() -> None:
|
||||
found = rippling.detail(_get((FIXTURES / "rippling-role-2.json").read_bytes()),
|
||||
found = rippling.detail(_get((FIXTURES / "rippling-detail-2.json").read_bytes()),
|
||||
"prisma-careers", {"source_id": "x"})
|
||||
assert found["description"].startswith("What is it like to work at Prisma?")
|
||||
assert found["location"] == "Remote (Germany)"
|
||||
@@ -165,7 +165,6 @@ def test_the_module_is_registered_as_a_feed_host_with_detail() -> None:
|
||||
def test_the_urls() -> None:
|
||||
assert rippling.feed_url("rippling") == FEED
|
||||
assert rippling.careers_url("prisma-careers") == "https://ats.rippling.com/prisma-careers/jobs"
|
||||
assert not hasattr(rippling, "robots_page") # decided when built, see READS.robots
|
||||
allow = rippling.allowed("rippling")
|
||||
assert allow("api.rippling.com") and allow("ATS.RIPPLING.COM")
|
||||
for host in ("rippling.com", "www.rippling.com", "api.rippling.com.evil.example", "localhost"):
|
||||
|
||||
@@ -35,7 +35,7 @@ def test_the_declaration_says_what_the_list_gives() -> None:
|
||||
assert (reads.listing, reads.page_size, reads.places, reads.text, reads.empty) == \
|
||||
("paged", 100, "one", "detail", "suspect")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.seniority == "stated"
|
||||
assert reads.robots.startswith("api: no robots.txt check needed")
|
||||
assert reads.robots.startswith("read though") and "owner to decide" in reads.robots
|
||||
|
||||
|
||||
def test_page_reads_by_offset_and_takes_the_ask() -> None:
|
||||
|
||||
@@ -451,7 +451,6 @@ def test_careers_url_is_the_search_page() -> None:
|
||||
page = successfactors.careers_url(slug)
|
||||
assert httpx.URL(page).host == slug.split("/")[0]
|
||||
assert successfactors.allowed(slug)(httpx.URL(page).host)
|
||||
assert not hasattr(successfactors, "robots_page") # decided when built, see READS.robots
|
||||
|
||||
|
||||
def test_the_module_is_case_sensitive_about_the_prefix() -> None:
|
||||
|
||||
@@ -24,8 +24,7 @@ def test_the_declaration_says_what_the_feed_gives() -> None:
|
||||
assert (reads.listing, reads.page_size, reads.places, reads.text, reads.complete) == \
|
||||
("paged", 50, "many", "listing", "end")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.remote == "stated"
|
||||
assert reads.robots.startswith("api: no robots.txt check needed")
|
||||
assert not hasattr(teamtailor, "robots_page")
|
||||
assert "/jobs.rss is allowed" in reads.robots
|
||||
|
||||
|
||||
def test_page_takes_the_ask_and_reads_the_same_url() -> None:
|
||||
|
||||
@@ -30,7 +30,7 @@ def test_the_declaration_says_what_the_list_gives() -> None:
|
||||
assert (reads.listing, reads.page_size, reads.places, reads.text) == \
|
||||
("paged", 10, "many", "detail")
|
||||
assert reads.fields.posted == "trusted" and reads.fields.employment == "stated"
|
||||
assert reads.robots.startswith("api: no robots.txt check needed")
|
||||
assert "/api/v3/accounts/<slug>/jobs" in reads.robots
|
||||
|
||||
|
||||
def test_page_takes_the_ask_and_posts_the_same_body() -> None:
|
||||
|
||||
@@ -446,10 +446,10 @@ def test_the_case_of_the_site_is_kept() -> None:
|
||||
assert "workday" in ats.HOSTS and ats.HOSTS["workday"] == "Workday"
|
||||
|
||||
|
||||
def test_the_runtime_robots_check_has_left_the_module() -> None:
|
||||
"""Decided when the reader was built (`READS.robots`): nothing to ask now."""
|
||||
assert not hasattr(workday, "robots_page") and not hasattr(workday, "ROBOTS_ANY_CASE")
|
||||
assert "robots.txt allows /<Site>/" in workday.READS.robots
|
||||
def test_the_robots_record_names_the_api_path() -> None:
|
||||
"""Decided when the reader was built (`READS.robots`), for the paths it
|
||||
requests, not only the career site's."""
|
||||
assert "/wday/cxs/<tenant>/<site>/" in workday.READS.robots
|
||||
|
||||
|
||||
# -------------------------------------------------------------- discovery
|
||||
|
||||
Reference in new issue
Block a user