Testing and quality · Tool

pytest

The standard testing framework for most Python projects, where tests are plain functions and checks are ordinary assert statements.

Test runners · Open source · updated

How it works

A pytest test is a function whose name starts with test_, and a failing assert shows exactly which values differed. Fixtures supply what tests need, such as a database session or a signed-in client, and clean up afterwards, while @pytest.mark.parametrize runs one test over many inputs. It also runs older unittest-style tests, so projects can switch gradually.

A large plugin ecosystem adds coverage (pytest-cov), parallel runs (pytest-xdist), async tests (pytest-asyncio) and framework helpers such as pytest-django. FastAPI and Django projects commonly pair it with a test client to exercise API routes over HTTP without starting a real server.

pytest pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

More in Testing and quality

Test runners

All 10 Testing and quality terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.