Keep Your AI Coding Agent on a Short Leash with TDD

Livestream
Agenda

AI agents can write Python faster than you can read it, so the real question is how you know the code is right. Test-driven development gives you an answer you can run: write down what "correct" means first, then let the agent work against it.

Join Jodie Burchell and Reuven Lerner, Python trainer since 1995 and author of Python Workout, for a live session on using TDD as the guardrail for agent-written code. Reuven has spent the past year teaching and building with coding agents, and keeps them on a "short leash" with TDD, strict type checking, and near-100% test coverage. We'll show how that works in practice in PyCharm.

In this stream, we'll:

  • Write a test first, using PyCharm's pytest support;
  • Hand the task to an agent of your choice using JetBrains Air, then review its implementation and flag anything that doesn't look right; and
  • Use PyCharm's test runner and debugger to diagnose what went wrong, and fix it

You'll leave with a repeatable workflow for getting the speed of an agent without giving up confidence in your code. It works whether you're already coding with agents or still deciding whether you can trust them.

Bring your questions about testing, agents, and how to keep both in check!

Speaking to you

Reuven Lerner
Reuven Lerner is a full-time Python trainer, teaching at companies around the world and also via his LernerPython online platform. Reuven publishes both Better Developers (about Python) and Bamboo Weekly (Pandas puzzles based on current events). His most recent book is AI-Assisted Python for Nonprogrammers (O'Reilly); he previously wrote Python Workout and Pandas Workout (Manning).