Syllabus

  1. 01Tests You Can TrustWhat a unit test is, how pytest runs one, and why a test is only worth keeping if it can fail.2 lessons
    1. 01A First Test That Can Fail
    2. 02Many Cases, One Test, and the Pyramid
  2. 02Asking an AI for TestsHow to write a prompt that gets useful pytest tests, and how to review what comes back.2 lessons
    1. 01Prompts That Carry the Rules
    2. 02Review Generated Tests Like a Skeptic
  3. 03Security Tests the Model Drafts and You VerifyFive common weaknesses in the choir's small web app, each with a function that is safe, a version that is not, and tests that tell them apart.5 lessons
    1. 01Input Validation Tests
    2. 02XSS Escaping Tests
    3. 03File Exposure Tests
    4. 04Secrets, Passwords and Randomness Tests
    5. 05Access Control Tests
  4. 04Limits and EthicsWhat generated tests cannot do for you, and the habits that keep you responsible for the result.1 lesson
    1. 01Where Generated Tests Go Wrong