python-pytest
Port variant v14
Summary Pytest: simple powerful testing with Python (3.14)
Package version 9.1.1
Homepage https://docs.pytest.org/en/latest/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 24 JUL 2026, 16:11:02 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)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
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/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f
Distribution File Information
37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c 386536 python-src/pytest-9.1.1-py3-none-any.whl
Ports that require python-pytest:v14
python-tempora:v14 Time and date routines (3.14)