Python Quest

Track 13 · Lesson 12 of 12

Debugging with tests: a pricing module

Reproduce each bug as a failing test, fix it, and keep the test; then build a complete test suite for a small pricing module.

About 70 minAdvanced5 exercises

You will be able to

  • Turn a bug report into a minimal failing test that reproduces it
  • Use the failing test, tracebacks and small experiments to locate the cause
  • Fix the bug and keep the test as a regression test
  • Build a test suite for a small module, milestone by milestone

Included with a Formula Quest membership

It has 5 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.

View Formula Quest memberships

Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.