Size a board once with board_size, before a pull reads it with no size, and name what a site's ids leave out
set_board sizes a board from page 1's total, or reads to the end on a host that states none, instead of reading it whole up to page 100. A pull no longer rewrites ats:size; a board with none is handed the agents' reach marked unsized and is sized in its batch first, or by its whole read on a host that cannot narrow the reach. reach.sizes drops the open-role fallback. The Companies line names countries a Workday or Oracle site does not list and a missing remote option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a19c528e3f
commit
a0882e9659
8 files changed
+579
-67
No files matched your search
@@ -29,24 +29,24 @@ def store(tmp_path: Path) -> Store:
|
||||
|
||||
|
||||
class Boards:
|
||||
"""A fake `fetch_board`: `listed` maps a target to how many roles it
|
||||
lists; any other target does not answer. Remembers what was fetched."""
|
||||
"""A fake `board_size`: `listed` maps a target to how many roles it
|
||||
lists; any other target does not answer. Remembers what was sized."""
|
||||
|
||||
def __init__(self, **listed: int) -> None:
|
||||
self.listed = {k.replace("_", ":", 1): v for k, v in listed.items()}
|
||||
self.fetched: list[str] = []
|
||||
|
||||
def __call__(self, target: str) -> tuple[list[dict[str, Any]], bool]:
|
||||
def __call__(self, target: str, **kwargs: Any) -> int:
|
||||
self.fetched.append(target)
|
||||
if target not in self.listed:
|
||||
raise OSError("connection refused")
|
||||
return [{"source_id": str(i)} for i in range(self.listed[target])], True
|
||||
return self.listed[target]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def boards(monkeypatch: pytest.MonkeyPatch) -> Boards:
|
||||
fake = Boards(greenhouse_acme=3, ashby_acme=2, lever_quiet=0, lever_acme=1)
|
||||
monkeypatch.setattr(ats, "fetch_board", fake)
|
||||
monkeypatch.setattr(ats, "board_size", fake)
|
||||
return fake
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user