Delete the _UNREADABLE entries of hosts that have a module

Ten entries were shadowed by their modules. A test now holds that no entry
names a reader, which replaces the per-host checks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-30 15:51:48 +02:00
1 parent 5f1b9e93e1
commit 531c8bc337
7 files changed
+11 -18

No files matched your search

+7
View File
@@ -17,6 +17,7 @@ from app.jobs import discover as mod
from app.jobs.discover import Discovery, boards_in, careers_links, discover, slug_guesses
from app.jobs.sources import seed_companies
from app.storage import Store
from plugins import readers
# ------------------------------------------------------------------ parsing
@@ -95,6 +96,12 @@ def test_a_host_that_gains_a_module_replaces_its_unreadable_pattern() -> None:
assert "taleo" not in mod.READABLE and ("taleo", r"\.taleo\.net") in mod._UNREADABLE
def test_no_unreadable_entry_names_a_host_with_a_module() -> None:
"""A new module deletes its host's `_UNREADABLE` entry: its own patterns
replace it."""
assert not {host for host, _ in mod._UNREADABLE} & set(readers.HOSTS)
def test_boards_in_dedupes_and_skips_the_api_paths_own_words() -> None:
page = ('<a href="https://boards.greenhouse.io/embed/job_board?for=acme">a</a>'
'<a href="https://boards-api.greenhouse.io/v1/boards/acme/jobs">b</a>')