![]() | |
Original author(s) | Krekel et al. |
---|---|
Stable release | 8.3.2[1] ![]() |
Repository | |
Written in | Python |
Platform | macOS, Windows, POSIX |
Type | Framework for software testing |
License | MIT License |
Website | pytest![]() |
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.