Learn pytest While Testing an Example Application

How would you like to learn pytest by testing silly examples you’d never run across in real life? Me neither. We’re not going to do that in this book. Instead, we’re going to write tests against an example project that I hope has many of the same traits of applications you’ll be testing after you read this book.

The Tasks Project

The application we’ll look at is called Tasks. Tasks is a minimal task-tracking application with a command-line user interface. It has enough in common with many other types of applications that I hope you can easily see how the testing concepts you learn while developing tests against Tasks are applicable to your projects now and in the future.

While Tasks has a command-line ...

Get Python Testing with pytest now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.