itsulu-blog-publisher/addons/itsulu_blog_publisher/tests/features/blog_scheduling.feature
Nicholas Riegel 2933ff8f4b feat: add BDD feature files for pytest-bdd scenarios
Created 5 feature files covering blog generation, scheduling, LLM provider
selection, SEO population, and notification emails. These files define the
Gherkin scenarios that pytest-bdd will generate test functions for.

- blog_generation.feature: On-demand generation with auto-publish toggle
- blog_scheduling.feature: Scheduled cron slot execution
- llm_provider_selection.feature: Provider dispatch and error handling
- seo_population.feature: SEO metadata and tag assignment
- notification_email.feature: Email notifications after generation

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-30 00:39:41 -04:00

18 lines
847 B
Gherkin

Feature: Schedule slot execution
As a system administrator
I want scheduled cron slots to run and generate blog posts
So that content is published automatically at configured times
Scenario: Active morning slot creates a blog post when run
Given the Anthropic API key is configured in Settings
And the blog "ITSulu Insights" exists in Odoo
When the generation completes
Then a blog.post record is created with a non-empty title
And a generation log entry exists with state "success"
Scenario Outline: Schedule slot generates from different topic sources
Given the Anthropic API key is configured in Settings
And the blog "ITSulu Insights" exists in Odoo
When the generation completes
Then a blog.post record is created with a non-empty title
And the generation log trigger_source is "scheduled"