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

+21
View File
@@ -116,6 +116,16 @@ def test_roles_without_text_and_text_reads_that_failed() -> None:
assert words(fake(), state(), counts=limits.Texts(9, 0)) == []
@pytest.mark.parametrize(("dropped", "found"), [
("3", ["3 listings dropped: no title or link"]),
("1", ["1 listing dropped: no title or link"]),
("", []), ("x", [])])
def test_the_listings_the_last_read_dropped_are_named(dropped: str, found: list[str]) -> None:
"""The rows the runner dropped (`_runner.valid`), after "read incomplete"."""
assert words(fake(), state(dropped=dropped)) == found
assert words(fake(), state(dropped=dropped, complete=""))[1:] == found
def test_a_board_is_read_whole_under_the_bar_or_when_its_host_cannot_filter() -> None:
assert words(fake(), state(), reach.SMALL - 1) == ["read whole"]
assert words(fake(), state(), reach.SMALL) == []
@@ -199,6 +209,17 @@ def test_companies_carry_their_limits_and_the_boards_own_open_roles(
assert row["limits"] == ["read incomplete", "without text: 1", "read whole"]
def test_a_board_that_dropped_listings_says_so_on_its_row(
client: TestClient, store: Store) -> None:
store.add_subscription("ats", "lever:acme", company="Acme", board="lever")
store.add_company("Acme", key="acme", ats="lever")
store.state["ats:ok:lever:acme"] = "run"
store.state["ats:complete:lever:acme"] = "1"
store.state["ats:dropped:lever:acme"] = "3"
[row] = client.get("/api/companies").json()
assert row["limits"][0] == "3 listings dropped: no title or link"
def test_a_company_without_a_board_has_no_limits(client: TestClient, store: Store) -> None:
store.add_company("Novo", key="novo", ats="taleo")
[row] = client.get("/api/companies").json()