itsulu-blog-publisher/addons/itsulu_blog_publisher
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
..
data fix: use type='html' not type='qweb' for mail template body_html 2026-05-30 03:02:59 -04:00
features fix: resolve remaining 9 BDD failures + production empty-body bug 2026-05-30 03:11:28 -04:00
models fix: resolve remaining 9 BDD failures + production empty-body bug 2026-05-30 03:11:28 -04:00
security Reorganize codebase into Odoo addon structure per ARCHITECTURE.md 2026-05-29 12:11:42 -04:00
services Implement LLMRouter and provider infrastructure for GREEN phase tests 2026-05-29 12:27:58 -04:00
static/src/css docs: add Kubernetes test infrastructure documentation 2026-05-29 18:13:32 -04:00
tests fix: resolve remaining 9 BDD failures + production empty-body bug 2026-05-30 03:11:28 -04:00
views test: RED phase — first test passing for blog.topic model 2026-05-29 22:50:10 -04:00
wizards Implement wizard and complete UI views for Blog Publisher addon 2026-05-29 12:35:49 -04:00
__init__.py Implement wizard and complete UI views for Blog Publisher addon 2026-05-29 12:35:49 -04:00
__manifest__.py test: RED phase — first test passing for blog.topic model 2026-05-29 22:50:10 -04:00