If words bore you, you can find the code in this gist. If you’re not familiar with either Flask-SQLAlchemy or pytest, you can read up on them here and here. Goals Before we dive in the code, let’s establish two important goals for our test suite: Fast: Slow tests become a friction point in your development workflow. Database setup and truncating or dropping tables cause delays. Isolated: Each test