itsulu-blog-publisher/addons/itsulu_blog_publisher/tests
Nicholas Riegel 42cd6c7aa5 fix: set body_html on mock response; remove dangling log assertion
- _make_mock_llm_response now sets body_html/raw_text (not just text).
  _create_blog_post writes body_html into blog.post.content; an unset
  MagicMock attr stringified to ~66 chars, failing the 500-char assertion.
- Remove leftover `assert log.tokens_used` in then_tokens_used_recorded
  that referenced a variable deleted in the prior router-level rewrite.

Full suite: 69 passed, 0 failed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 03:14:38 -04:00
..
features feat: add BDD feature files for pytest-bdd scenarios 2026-05-30 00:39:41 -04:00
__init__.py Implement LLMRouter and provider infrastructure for GREEN phase tests 2026-05-29 12:27:58 -04:00
factories.py fix: use sudo() in blog_post factory to bypass validation 2026-05-29 23:25:17 -04:00
test_bdd_steps.py fix: set body_html on mock response; remove dangling log assertion 2026-05-30 03:14:38 -04:00
test_blog_generation_log.py Reorganize codebase into Odoo addon structure per ARCHITECTURE.md 2026-05-29 12:11:42 -04:00
test_blog_post_social.py fix: use _render_field() for template rendering; fix wizard import name 2026-05-30 02:53:57 -04:00
test_blog_schedule.py fix: replace cr.commit() with flush_all() for test compatibility and fix mock assertion 2026-05-30 00:19:29 -04:00
test_blog_topic.py test: fix test framework compatibility for ValidationError assertion 2026-05-29 23:12:32 -04:00
test_llm_router.py fix: update test_llm_router to use topic parameter and valid JSON mocks 2026-05-30 00:27:48 -04:00
test_performance.py fix: resolve 18 test failures across BDD, email, and performance tests 2026-05-30 02:33:48 -04:00