python-pytest
Port variant v14
Summary Pytest: simple powerful testing with Python (3.14)
Package version 9.2.0
Homepage https://docs.pytest.org/en/latest/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v15
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 13 NOV 2026, 13:25:52 UTC
Port created 24 JUL 2026, 16:11:02 UTC
Subpackage Descriptions
single :align: center :height: 200 :alt: pytest ------ :alt: Code coverage Status :alt: pre-commit.ci status :alt: Documentation Status :alt: Discord :alt: Libera chat The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. An example of a simple test: .. code-block:: python # content of test_sample.py def inc(x): return x + 1 def test_answer(): assert inc(3) == 5 To execute it:: $ pytest ============================= test session starts ============================= collected 1 items test_sample.py F ================================== FAILURES =================================== _________________________________ test_answer _________________________________ def test_answer(): > assert inc(3) == 5 E assert 4 == 5 E + where 4 = inc(3) test_sample.py:5: AssertionError ========================== 1 failed in 0.04 seconds =========================== Thanks to pytest's detailed assertion introspection, you can simply use plain assert statements. See `getting-started `_ for more examples. Features -------- - Detailed info on failing [assert statements] (no need to remember ``self.assert*`` names) - `Auto-discovery `_ of test modules and functions - [Modular fixtures] for managing small or parametrized long-lived test resources - Can run [unittest] (or trial) test suites out of the box - Python 3.10+ or PyPy3 - Rich plugin architecture, with over 1300+ [external plugins] and thriving community Documentation ------------- For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/. Bugs/Requests ------------- Please use the [GitHub issue tracker] to submit bugs or request features. Changelog --------- Consult the [Changelog] page for fixes and enhancements of each version. Support pytest --------------
Configuration Switches (platform-specific settings discarded)
PY314 ON Build using Python 3.14 PY315 OFF Build using Python 3.15
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Runtime (only) python-iniconfig:single:v14
python-packaging:single:v14
python-pluggy:single:v14
python-Pygments:single:v14
Download groups
main mirror://PYPIWHL/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67
Distribution File Information
07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 411776 python-src/pytest-9.2.0-py3-none-any.whl
Ports that require python-pytest:v14
python-tempora:v14 Time and date routines (3.14)