METADATA 7.8 KB

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