Wire freehire, Jobnet and Akademikernes Jobbank into the CLI, the Sources form, dupes and the docs

Provider names, the CLI's choices and the dupes rule's search hosts now come from readers.PROVIDERS, and the regions, work modes and remote words from the modules' REGIONS, MODES and REMOTE, read with getattr so main works before and after the readers merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5.5 committed 2026-10-03 12:24:34 +02:00
1 parent 018a1ad895
commit 6e6e655203
16 files changed
+422 -39

No files matched your search

+15
View File
@@ -61,6 +61,21 @@ def test_a_search_copy_of_a_board_role_is_hidden_behind_the_board(store: Store)
assert dup_of(store) == {board.uid: None, search.uid: board.uid}
def test_a_freehire_copy_of_a_greenhouse_role_is_hidden_behind_the_board(
store: Store, search_stubs: dict[str, object]) -> None:
"""freehire aggregates other hosts' postings; the same role it lists from
a board roledesk reads is one role, and the board's copy is the one kept
even though freehire's is the one with a description."""
board = role("board", company="Lunar", title="Head of Data", place="Copenhagen",
board="greenhouse", body="", day=22)
copy = role("copy", company="Lunar", title="Head of Data", place="Copenhagen, Denmark",
board=None, provider="freehire", source="greenhouse", day=20)
for item in (copy, board):
store.upsert_role(item)
store.rebuild_dupes()
assert dup_of(store) == {board.uid: None, copy.uid: board.uid}
def kept_of(store: Store, *items: Item) -> str:
"""The uid of the one of these roles that is not a copy."""
found = dup_of(store)