METADATA 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. Metadata-Version: 2.4
  2. Name: pytest
  3. Version: 8.4.2
  4. Summary: pytest: simple powerful testing with Python
  5. Author: Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin, Others (See AUTHORS)
  6. License: MIT
  7. Project-URL: Changelog, https://docs.pytest.org/en/stable/changelog.html
  8. Project-URL: Contact, https://docs.pytest.org/en/stable/contact.html
  9. Project-URL: Funding, https://docs.pytest.org/en/stable/sponsor.html
  10. Project-URL: Homepage, https://docs.pytest.org/en/latest/
  11. Project-URL: Source, https://github.com/pytest-dev/pytest
  12. Project-URL: Tracker, https://github.com/pytest-dev/pytest/issues
  13. Keywords: test,unittest
  14. Classifier: Development Status :: 6 - Mature
  15. Classifier: Intended Audience :: Developers
  16. Classifier: License :: OSI Approved :: MIT License
  17. Classifier: Operating System :: MacOS
  18. Classifier: Operating System :: Microsoft :: Windows
  19. Classifier: Operating System :: POSIX
  20. Classifier: Operating System :: Unix
  21. Classifier: Programming Language :: Python :: 3 :: Only
  22. Classifier: Programming Language :: Python :: 3.9
  23. Classifier: Programming Language :: Python :: 3.10
  24. Classifier: Programming Language :: Python :: 3.11
  25. Classifier: Programming Language :: Python :: 3.12
  26. Classifier: Programming Language :: Python :: 3.13
  27. Classifier: Programming Language :: Python :: 3.14
  28. Classifier: Topic :: Software Development :: Libraries
  29. Classifier: Topic :: Software Development :: Testing
  30. Classifier: Topic :: Utilities
  31. Requires-Python: >=3.9
  32. Description-Content-Type: text/x-rst
  33. License-File: LICENSE
  34. License-File: AUTHORS
  35. Requires-Dist: colorama>=0.4; sys_platform == "win32"
  36. Requires-Dist: exceptiongroup>=1; python_version < "3.11"
  37. Requires-Dist: iniconfig>=1
  38. Requires-Dist: packaging>=20
  39. Requires-Dist: pluggy<2,>=1.5
  40. Requires-Dist: pygments>=2.7.2
  41. Requires-Dist: tomli>=1; python_version < "3.11"
  42. Provides-Extra: dev
  43. Requires-Dist: argcomplete; extra == "dev"
  44. Requires-Dist: attrs>=19.2; extra == "dev"
  45. Requires-Dist: hypothesis>=3.56; extra == "dev"
  46. Requires-Dist: mock; extra == "dev"
  47. Requires-Dist: requests; extra == "dev"
  48. Requires-Dist: setuptools; extra == "dev"
  49. Requires-Dist: xmlschema; extra == "dev"
  50. Dynamic: license-file
  51. .. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg
  52. :target: https://docs.pytest.org/en/stable/
  53. :align: center
  54. :height: 200
  55. :alt: pytest
  56. ------
  57. .. image:: https://img.shields.io/pypi/v/pytest.svg
  58. :target: https://pypi.org/project/pytest/
  59. .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
  60. :target: https://anaconda.org/conda-forge/pytest
  61. .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
  62. :target: https://pypi.org/project/pytest/
  63. .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/main/graph/badge.svg
  64. :target: https://codecov.io/gh/pytest-dev/pytest
  65. :alt: Code coverage Status
  66. .. image:: https://github.com/pytest-dev/pytest/actions/workflows/test.yml/badge.svg
  67. :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Atest
  68. .. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg
  69. :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main
  70. :alt: pre-commit.ci status
  71. .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
  72. :target: https://www.codetriage.com/pytest-dev/pytest
  73. .. image:: https://readthedocs.org/projects/pytest/badge/?version=latest
  74. :target: https://pytest.readthedocs.io/en/latest/?badge=latest
  75. :alt: Documentation Status
  76. .. image:: https://img.shields.io/badge/Discord-pytest--dev-blue
  77. :target: https://discord.com/invite/pytest-dev
  78. :alt: Discord
  79. .. image:: https://img.shields.io/badge/Libera%20chat-%23pytest-orange
  80. :target: https://web.libera.chat/#pytest
  81. :alt: Libera chat
  82. The ``pytest`` framework makes it easy to write small tests, yet
  83. scales to support complex functional testing for applications and libraries.
  84. An example of a simple test:
  85. .. code-block:: python
  86. # content of test_sample.py
  87. def inc(x):
  88. return x + 1
  89. def test_answer():
  90. assert inc(3) == 5
  91. To execute it::
  92. $ pytest
  93. ============================= test session starts =============================
  94. collected 1 items
  95. test_sample.py F
  96. ================================== FAILURES ===================================
  97. _________________________________ test_answer _________________________________
  98. def test_answer():
  99. > assert inc(3) == 5
  100. E assert 4 == 5
  101. E + where 4 = inc(3)
  102. test_sample.py:5: AssertionError
  103. ========================== 1 failed in 0.04 seconds ===========================
  104. Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>`_ for more examples.
  105. Features
  106. --------
  107. - Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/how-to/assert.html>`_ (no need to remember ``self.assert*`` names)
  108. - `Auto-discovery
  109. <https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>`_
  110. of test modules and functions
  111. - `Modular fixtures <https://docs.pytest.org/en/stable/explanation/fixtures.html>`_ for
  112. managing small or parametrized long-lived test resources
  113. - Can run `unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>`_ (or trial)
  114. test suites out of the box
  115. - Python 3.9+ or PyPy3
  116. - Rich plugin architecture, with over 1300+ `external plugins <https://docs.pytest.org/en/latest/reference/plugin_list.html>`_ and thriving community
  117. Documentation
  118. -------------
  119. For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
  120. Bugs/Requests
  121. -------------
  122. Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
  123. Changelog
  124. ---------
  125. Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
  126. Support pytest
  127. --------------
  128. `Open Collective`_ is an online funding platform for open and transparent communities.
  129. It provides tools to raise money and share your finances in full transparency.
  130. It is the platform of choice for individuals and companies that want to make one-time or
  131. monthly donations directly to the project.
  132. See more details in the `pytest collective`_.
  133. .. _Open Collective: https://opencollective.com
  134. .. _pytest collective: https://opencollective.com/pytest
  135. pytest for enterprise
  136. ---------------------
  137. Available as part of the Tidelift Subscription.
  138. The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
  139. maintenance for the open source dependencies you use to build your applications.
  140. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
  141. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_
  142. Security
  143. ^^^^^^^^
  144. pytest has never been associated with a security vulnerability, but in any case, to report a
  145. security vulnerability please use the `Tidelift security contact <https://tidelift.com/security>`_.
  146. Tidelift will coordinate the fix and disclosure.
  147. License
  148. -------
  149. Copyright Holger Krekel and others, 2004.
  150. Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
  151. .. _`MIT`: https://github.com/pytest-dev/pytest/blob/main/LICENSE