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

+12
View File
@@ -181,6 +181,18 @@ def test_keep_order_ranks():
key=keep_order).uid == "a"
def test_every_search_provider_loses_to_a_board(search_stubs):
from app.dupes import is_search_host
assert all(is_search_host(h) for h in
("jobindex", "adzuna", "platsbanken", "freehire", "jobnet", "jobbank"))
assert not any(is_search_host(h) for h in ("greenhouse", "workday", "teamtailor", ""))
board = cp("z", host="greenhouse", desc=False, posted="2026-09-09")
for host in ("freehire", "jobnet", "jobbank"):
search = cp("a", host=host, desc=True, posted="2026-01-01")
assert min([search, board], key=keep_order) is board
def test_a_row_without_a_town_joins_only_one_group():
# "Germany" matches Berlin and Munich; joining both would make them one role.
rows = [cp("a", place="Berlin"), cp("b", place="Munich"), cp("c", place="Germany")]