itsulu-blog-publisher/addons/itsulu_blog_publisher
Nicholas Riegel 1d4b8c93a0 test: fix test framework compatibility for ValidationError assertion
Changed assertRaises((ValidationError, Exception)) to assertRaises(ValidationError).
Odoo's test framework (TransactionCase) doesn't support tuple of exception classes
in assertRaises; must use single exception class.

All 7 blog_topic tests now PASS:
 test_topic_is_created_with_pending_state
 test_get_next_topic_returns_highest_priority_pending_topic
 test_get_next_topic_returns_none_when_queue_is_empty
 test_mark_topic_as_used_changes_state
 test_topic_can_be_linked_to_a_specific_blog
 test_topic_name_cannot_be_empty
 test_used_topic_is_excluded_from_next_topic_selection

Execution time: 0.47s (after ~60s addon installation).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-29 23:12:32 -04:00
..
data Reorganize codebase into Odoo addon structure per ARCHITECTURE.md 2026-05-29 12:11:42 -04:00
features Complete BDD feature file organization and add comprehensive step definitions 2026-05-29 12:41:24 -04:00
models docs: add Kubernetes test infrastructure documentation 2026-05-29 18:13:32 -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 test: fix test framework compatibility for ValidationError assertion 2026-05-29 23:12:32 -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