itsulu-blog-publisher/addons/itsulu_blog_publisher/features
Nicholas Riegel a0d2ba5506 fix: resolve remaining 9 BDD failures + production empty-body bug
PRODUCTION BUG: _create_blog_post never wrote the LLM body into the post.
Every auto-generated post was published empty. Add 'content': body_html
(content is the Odoo 17 blog.post body field; body_arch was removed).

BDD step/feature fixes (active features/ dir, not the dead tests/features/):
- body_arch → content in step + feature + given_published_blog_post
- then_non_empty_response: result.text → result.body_html (LLMResponse attr)
- llm_provider_selection feature: "provider not configured" → "not configured"
  (matches LLMRouter.__init__ message; the generate() fallback never fires)
- then_tokens_used_recorded: assert on result.tokens_used (router returns a
  response, it does not persist a log — that is the schedule's job)
- when_llm_router_called: configure the provider-under-test's own credential
  (Background only sets the Anthropic key, so openai/gemini bailed early)
- fails-gracefully: invalid key now drives mock side_effect=UserError so
  run_generation records an error log and creates no post

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 03:11:28 -04:00
..
blog_generation.feature fix: resolve remaining 9 BDD failures + production empty-body bug 2026-05-30 03:11:28 -04:00
blog_scheduling.feature Complete BDD feature file organization and add comprehensive step definitions 2026-05-29 12:41:24 -04:00
llm_provider_selection.feature fix: resolve remaining 9 BDD failures + production empty-body bug 2026-05-30 03:11:28 -04:00
notification_email.feature Complete BDD feature file organization and add comprehensive step definitions 2026-05-29 12:41:24 -04:00
seo_population.feature Complete BDD feature file organization and add comprehensive step definitions 2026-05-29 12:41:24 -04:00