Module 3 of 4
Prove it works with pytest
Why: An automation that books orders without a human is only safe if you can prove it does the right thing, and keeps doing it after every change.
You write pytest tests for business rules, the LLM step and the ERP connection, and prove each test fails when the code is wrong.
Lessons
- Your First pytest Tests (45 min) - beginner
- Testing Business Rules: Boundaries and Breaking It on Purpose (60 min) - beginner
- Testing the LLM Step without Calling the LLM (60 min) - beginner
- Testing Integrations: Contract Tests and Shared State (60 min) - beginner