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:
1 parent
750d3d1311
commit
0ad47605fd
2 files changed
+7
-3
No files matched your search
+3
-2
@@ -605,7 +605,7 @@ def test_companies_lists_board_and_open_role_count(
|
|||||||
"from_search": False, "hand_reason": "", "by_hand": False,
|
"from_search": False, "hand_reason": "", "by_hand": False,
|
||||||
"all_countries": False, "all_roles": False,
|
"all_countries": False, "all_roles": False,
|
||||||
"reach_params": {}, "reach": "size not known yet: sized on the next pull",
|
"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"]
|
[other] = [c for c in res.json() if c["key"] == "other"]
|
||||||
assert (other["board"], other["subscription_id"], other["on"], other["ats"]) == (
|
assert (other["board"], other["subscription_id"], other["on"], other["ats"]) == (
|
||||||
"", None, None, "")
|
"", 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": "",
|
"country": "", "city": "", "watch": None, "careers_opened_at": "",
|
||||||
"failing_since": "", "failing_reason": "", "from_search": False,
|
"failing_since": "", "failing_reason": "", "from_search": False,
|
||||||
"hand_reason": "added", "by_hand": True, "all_countries": False, "all_roles": 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]
|
assert store.company("revolut").hand_reason == "added" # type: ignore[union-attr]
|
||||||
|
|
||||||
other = client.post("/api/companies", json={"name": "Meta", "hand_reason": "blocked"})
|
other = client.post("/api/companies", json={"name": "Meta", "hand_reason": "blocked"})
|
||||||
|
|||||||
@@ -145,7 +145,10 @@ def test_the_readers_are_listed_with_what_they_declare(client: TestClient) -> No
|
|||||||
assert found["workday"] == {
|
assert found["workday"] == {
|
||||||
"name": "workday", "label": "Workday", "scope": "board", "listing": "paged",
|
"name": "workday", "label": "Workday", "scope": "board", "listing": "paged",
|
||||||
"text": "detail", "filters": {"country": "ids", "remote": "ids", "query": "one"},
|
"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"]}
|
"robots": found["workday"]["robots"]}
|
||||||
assert found["workday"]["robots"].startswith("read:")
|
assert found["workday"]["robots"].startswith("read:")
|
||||||
assert found["greenhouse"]["filters"] == {}
|
assert found["greenhouse"]["filters"] == {}
|
||||||
|
|||||||
Reference in new issue
Block a user