From 0ad47605fd1728a9bbb4fcfa95974e8d75263b67 Mon Sep 17 00:00:00 2001 From: Wolf Date: Wed, 30 Sep 2026 16:03:48 +0200 Subject: [PATCH] Expect limits, board_open and the full reader declaration in the exact-row tests Co-Authored-By: Claude Fable 5.1 --- tests/test_web.py | 5 +++-- tests/test_web_reach.py | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test_web.py b/tests/test_web.py index 6afd80a..00fad16 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -605,7 +605,7 @@ def test_companies_lists_board_and_open_role_count( "from_search": False, "hand_reason": "", "by_hand": False, "all_countries": False, "all_roles": False, "reach_params": {}, "reach": "size not known yet: sized on the next pull", - "size": None, "size_checked": ""} + "size": None, "size_checked": "", "limits": ["read whole"], "board_open": 1} [other] = [c for c in res.json() if c["key"] == "other"] assert (other["board"], other["subscription_id"], other["on"], other["ats"]) == ( "", None, None, "") @@ -1456,7 +1456,8 @@ def test_a_company_is_added_by_hand_with_a_reason_and_a_link( "country": "", "city": "", "watch": None, "careers_opened_at": "", "failing_since": "", "failing_reason": "", "from_search": False, "hand_reason": "added", "by_hand": True, "all_countries": False, "all_roles": False, - "reach_params": {}, "reach": "", "size": None, "size_checked": ""} + "reach_params": {}, "reach": "", "size": None, "size_checked": "", "limits": [], + "board_open": None} assert store.company("revolut").hand_reason == "added" # type: ignore[union-attr] other = client.post("/api/companies", json={"name": "Meta", "hand_reason": "blocked"}) diff --git a/tests/test_web_reach.py b/tests/test_web_reach.py index f97ea5a..2f53b55 100644 --- a/tests/test_web_reach.py +++ b/tests/test_web_reach.py @@ -145,7 +145,10 @@ def test_the_readers_are_listed_with_what_they_declare(client: TestClient) -> No assert found["workday"] == { "name": "workday", "label": "Workday", "scope": "board", "listing": "paged", "text": "detail", "filters": {"country": "ids", "remote": "ids", "query": "one"}, - "places": "many", + "places": "many", "complete": "stated", "page_size": 20, "ceiling": 2000, + "teaser": False, "empty": "trusted", + "fields": {"pay": "none", "posted": "trusted", "remote": "stated", "country": "none", + "seniority": "none", "employment": "stated"}, "robots": found["workday"]["robots"]} assert found["workday"]["robots"].startswith("read:") assert found["greenhouse"]["filters"] == {}