Expect limits, board_open and the full reader declaration in the exact-row tests

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-30 16:03:48 +02:00
1 parent 750d3d1311
commit 0ad47605fd
2 files changed
+7 -3

No files matched your search

+3 -2
View File
@@ -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"})
+4 -1
View File
@@ -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"] == {}