rss-news/backend/tests
Oliver Giertz f0d10112ad
feat(wordpress): set post category from title and tag rules
Published articles carried no category, so WordPress filed all of them
under the catch-all "Allgemein" - 941 of 955 posts by the time this was
noticed. The rules here mirror the one-off backfill of 2026-07-31 and
reproduce its result on all 955 posts exactly.

Matching is done on word boundaries rather than plain substrings, which
otherwise filed a campsite in Klagenfurt under "Recht & Vorschriften" via
the keyword "klage". German compounds opt in explicitly with a trailing
"*". A clear discount signal takes precedence over the product topic,
because product tags otherwise outnumber it.

Unknown slugs are never auto-created: unlike tags, the category set is
curated in WordPress, so a mismatch should surface rather than spawn a
new category. Articles that match no rule stay uncategorised on purpose.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 08:00:32 +02:00
..
__init__.py feat: rebuild rss-news backend, admin ui, and legal extraction pipeline 2026-02-18 09:52:36 +01:00
test_admin_ui.py feat(rewrite): add batch rewrite run, AI tags for WP, and agentur contact detection 2026-02-21 14:39:47 +01:00
test_api_auth.py feat(export): add csv/json article export with date relevance scoring 2026-02-18 10:04:38 +01:00
test_article_workflow.py feat(admin): add feed/source management, rewrite editor, reopen flow, and WP block output 2026-02-21 14:03:49 +01:00
test_categorize.py feat(wordpress): set post category from title and tag rules 2026-07-31 08:00:32 +02:00
test_db_repositories.py feat(publisher): add wordpress draft queue with retry and admin controls 2026-02-18 10:49:43 +01:00
test_ingestion.py test(ingestion): update test for removed Ampel risk-level check 2026-03-21 09:41:34 +00:00
test_publisher.py feat(publisher): add wordpress draft queue with retry and admin controls 2026-02-18 10:49:43 +01:00
test_relevance.py feat(export): add csv/json article export with date relevance scoring 2026-02-18 10:04:38 +01:00
test_scheduler.py Use four fixed daily publish slots 2026-07-24 10:38:04 +02:00
test_source_extraction.py feat(rewrite): add batch rewrite run, AI tags for WP, and agentur contact detection 2026-02-21 14:39:47 +01:00
test_wordpress.py feat(wordpress): set post category from title and tag rules 2026-07-31 08:00:32 +02:00