Say remote not asked on the Companies line, show a failing search on its row, forget a removed search's record, and mark a read that asked nothing as not closing
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ad47605fd
commit
a63eed2e56
10 files changed
+66
-36
No files matched your search
@@ -307,7 +307,7 @@ WORKDAY = "workday:acme.wd3/Jobs"
|
||||
"follows agents: DK, remote · SE not on this site · all roles"),
|
||||
({"country": {"DE": "c=de"}, "remote": {"remote": "r=1"}},
|
||||
"follows agents: remote · DK, SE not on this site · all roles"),
|
||||
({"country": {"DE": "c=de"}}, "site lists none of DK, SE, remote: nothing asked"),
|
||||
({"country": {"DE": "c=de"}}, "site lists none of DK, SE, remote: nothing asked, not closing"),
|
||||
], ids=["none kept", "all known", "one country, no remote", "one country and remote",
|
||||
"remote only", "none"])
|
||||
def test_the_line_names_what_a_site_does_not_know(
|
||||
@@ -322,7 +322,7 @@ def test_the_line_names_what_a_site_does_not_know(
|
||||
assert reach.line(plan, sub) == line
|
||||
# What the line says is left to ask is what the runner asks.
|
||||
ask = _runner.ask_for(workday, sub.params, plan.for_subscription(sub))
|
||||
assert (_runner.series(workday, ask, facets) == []) == line.endswith("nothing asked")
|
||||
assert (_runner.series(workday, ask, facets) == []) == line.endswith("nothing asked, not closing")
|
||||
|
||||
|
||||
def test_the_line_says_nothing_is_asked_in_the_plans_words(store: Store) -> None:
|
||||
@@ -331,7 +331,7 @@ def test_the_line_says_nothing_is_asked_in_the_plans_words(store: Store) -> None
|
||||
store.state[f"ats:facets:{WORKDAY}"] = json.dumps(
|
||||
{"checked": "2026-09-30T06:00:00+00:00", "facets": {"country": {"DE": "c=de"}}})
|
||||
assert reach.line(reach.plan(store), _sub(store, WORKDAY)) == \
|
||||
"site lists none of DK, SE: nothing asked"
|
||||
"site lists none of DK, SE: nothing asked, not closing"
|
||||
|
||||
|
||||
def test_a_boards_own_reach_is_named_the_same_and_remote_alone_is_read_whole(
|
||||
@@ -378,7 +378,7 @@ def test_recheck_sizes_the_board_again_and_queues_a_pull(
|
||||
res = client.post(f"/api/sources/{sub_id}/size")
|
||||
assert res.status_code == 200, res.text
|
||||
assert res.json() == {"size": 4830, "size_checked": TODAY,
|
||||
"reach": "follows agents: DK, SE · all roles"}
|
||||
"reach": "follows agents: DK, SE · remote not asked on SmartRecruiters · all roles"}
|
||||
assert app.state.queue.jobs.last("pull", states=("queued", "running", "done")) is not None
|
||||
[row] = client.get("/api/companies").json()
|
||||
assert (row["size"], row["size_checked"]) == (4830, TODAY)
|
||||
@@ -408,7 +408,7 @@ def test_the_cli_sizes_one_board_or_every_board_without_a_size(
|
||||
monkeypatch.setattr(ats, "_get", SmartRecruiters(4830))
|
||||
assert _cli(tmp_path, "size", "bosch") == 0
|
||||
assert json.loads(capsys.readouterr().out) == {
|
||||
"board": BOSCH, "size": 4830, "reach": "follows agents: DK, SE · all roles"}
|
||||
"board": BOSCH, "size": 4830, "reach": "follows agents: DK, SE · remote not asked on SmartRecruiters · all roles"}
|
||||
|
||||
def some(client: Any, url: str, host: str, slug: str, **kwargs: Any) -> bytes:
|
||||
if slug == "gone":
|
||||
|
||||
Reference in new issue
Block a user