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> |
||
|---|---|---|
| .. | ||
| data | ||
| features | ||
| models | ||
| security | ||
| services | ||
| static/src/css | ||
| tests | ||
| views | ||
| wizards | ||
| __init__.py | ||
| __manifest__.py | ||