Prompt file imported from sandialabs/talkpipe (
.github/prompts/tdd.prompt.md). Copyright stays with the author.
Follow the TalkPipe TDD workflow for this change:
- Write or update a test in
tests/that fails without the change. Prefer updating an existing test file over creating a new one. - Verify the test fails: run
source .venv/bin/activate && pytest <test-file> -v - Implement the change
- Verify the test passes: re-run the same pytest command
Constraints:
- Tests mirror
src/structure undertests/talkpipe/ - Keep tests as short as possible while covering the functionality completely
- Use
pytest.fixtureandpytest-mockfor dependencies - Always use the
.venvenvironment; abort and alert if it doesn't exist
If a unit test is not reasonable (e.g., requires external LLM, is purely cosmetic), notify the user and explain why.
The change to implement: $input
