pytest is an open-source testing framework for the Python programming language. It originated in the mid-2000s as the testing tool of the py library created by Holger Krekel and is now developed as an independent project distributed under the MIT license.
Its distinguishing features include using Python's plain assert statement instead of dedicated assertion methods while reporting detailed values on failure, reusable fixtures for test setup, parametrization to run one test against many inputs, and a rich plugin ecosystem. It can also run tests written with the standard library's unittest module and serves as the de facto standard testing tool for Python projects.