Posts

pytest fixtures nuts and bolts - revisited

A series on pytest fixtures gets updated

Time Machine back to 2012

A review of old posts has begun!

Unravelling t-strings with pytest

Brett Cannon recently released an article explaining Python 3.14's new t-strings. This article has pytest versions of the code from Brett's article.

Testing some tidbits with pytest

I noticed a fun post by Ned Batchelder called "Testing some tidbits". The post looks at different ways to see if a string has only 0 or 1 in it. I'm expanding on that with some pytest code to test the different ways.

Finding the top pytest plugins

What are the top downloaded pytest plugins? I want to know this. And I'd like the answer updated regularly. So today I decided to write a script to do that for me.

pytest 8 is here

A few notes on some cool additions in pytest 8

Testing argparse Applications

CLI testing can be tricky, we unravel it for argparse apps

pytest slow order

Using pytest-skip-slow to control whether or not to run slow tests.

Upgrading to Python 3.12 and my battle with virtualenv cache

Recapping some troubles I had when upgrading

Sharing is Caring - Sharing pytest Fixtures - PyCascades 2023

Slides, link to video, and resources