Add tests for #1492#1494
Draft
prompt-driven-github[bot] wants to merge 1 commit into
Draft
Conversation
Add tests/test_agentic_change_story_prompt.py with 13 regression tests covering the user story generation workflow introduced in PR #1489: - Changed non-LLM .prompt files trigger generate_user_story - *_LLM.prompt runtime templates are skipped - Non-prompt files (.py, .md, .json) are skipped - Missing/deleted paths are skipped gracefully - Story generation failure is non-blocking (PR creation continues) - Only changed prompts are passed (scoped validation) Also implements the missing Step 12.6 in agentic_change_orchestrator.py to wire generate_user_story into run_agentic_change_orchestrator. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds tests based on the requirements in #1492.
Test Files
tests/test_agentic_change_story_prompt.py(13 regression tests)pdd/agentic_change_orchestrator.py(Step 12.6 implementation)Test Coverage
unittest.mockWhat These Tests Verify
Regression tests for the user story generation workflow from PR #1489:
generate_user_storyis called with the changed.promptfile and issue URL*_LLM.prompt) is skipped — runtime templates never trigger story generation.py,.md,.jsonfiles do not trigger story generationgenerate_user_storyreturnsFalseor raises an exceptionContract Test Summary
N/A - no OpenAPI spec found
Accessibility Audit Summary
N/A - not a web test
Manual Testing Summary
N/A - covered by automated regression tests
Test Execution
Next Steps
Closes #1492
Generated by PDD agentic test workflow (18-step)