Let the runner drop and count a row without an id, a title or a link, as ADR Plugins 3.8 has it, in one place for whole, paged and search reads: the count is stamped per target, logged, named on the board's row, and over 10% of the rows fails the read; the 28 readers hand every listing over instead of skipping it

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-06 14:04:33 +02:00
1 parent 38c31c830b
commit 911dfe8584
58 files changed
+479 -203

No files matched your search

+4 -3
View File
@@ -15,7 +15,7 @@ if str(ROOT) not in sys.path:
from app.jobs import discover # noqa: E402
from plugins import ats, readers # noqa: E402
from plugins.readers import pinpoint # noqa: E402
from plugins.readers import _runner, pinpoint # noqa: E402
FIXTURES = ROOT / "tests" / "fixtures" / "ats"
@@ -86,11 +86,12 @@ def test_an_unknown_pay_frequency_keeps_the_text_and_leaves_the_columns() -> Non
assert (row["salary_min"], row["salary_max"], row["currency"]) == (None, None, "")
def test_a_posting_without_a_title_or_an_id_or_a_web_url_is_left_out() -> None:
def test_a_posting_without_a_title_or_an_id_or_a_web_url_is_dropped_by_the_runner() -> None:
body = json.loads(_body())
body["data"][0]["title"] = ""
body["data"][1]["url"] = "javascript:alert(1)"
assert pinpoint.parse(json.dumps(body).encode(), "xeneta") == []
rows = pinpoint.parse(json.dumps(body).encode(), "xeneta")
assert len(rows) == 2 and not any(map(_runner.valid, rows))
def test_an_empty_board_is_no_rows_and_a_page_that_is_not_a_listing_raises() -> None: