Pytest

Pytest
Original author(s)Krekel et al.
Stable release
8.3.3[1] Edit this on Wikidata / 10 September 2024; 2 months ago (10 September 2024)
Repository
Written inPython
PlatformmacOS, Windows, POSIX
TypeFramework for software testing
LicenseMIT License
Websitepytest.org Edit this on Wikidata

Pytest is a Python testing framework that originated from the PyPy project. It can be used to write various types of software tests, including unit tests, integration tests, end-to-end tests, and functional tests. Its features include parametrized testing, fixtures, and assert re-writing.

Pytest fixtures provide the contexts for tests by passing in parameter names in test cases; its parametrization eliminates duplicate code for testing multiple sets of input and output; and its rewritten assert statements provide detailed output for causes of failures.

  1. ^ "Release 8.3.3". 10 September 2024. Retrieved 26 September 2024.