You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

210 lines
7.1KB

  1. Metadata-Version: 2.1
  2. Name: pytest
  3. Version: 6.2.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.6
  27. Classifier: Programming Language :: Python :: 3.7
  28. Classifier: Programming Language :: Python :: 3.8
  29. Classifier: Programming Language :: Python :: 3.9
  30. Classifier: Topic :: Software Development :: Libraries
  31. Classifier: Topic :: Software Development :: Testing
  32. Classifier: Topic :: Utilities
  33. Requires-Python: >=3.6
  34. Description-Content-Type: text/x-rst
  35. Requires-Dist: attrs (>=19.2.0)
  36. Requires-Dist: iniconfig
  37. Requires-Dist: packaging
  38. Requires-Dist: pluggy (<1.0.0a1,>=0.12)
  39. Requires-Dist: py (>=1.8.2)
  40. Requires-Dist: toml
  41. Requires-Dist: importlib-metadata (>=0.12) ; python_version < "3.8"
  42. Requires-Dist: atomicwrites (>=1.0) ; sys_platform == "win32"
  43. Requires-Dist: colorama ; sys_platform == "win32"
  44. Provides-Extra: testing
  45. Requires-Dist: argcomplete ; extra == 'testing'
  46. Requires-Dist: hypothesis (>=3.56) ; extra == 'testing'
  47. Requires-Dist: mock ; extra == 'testing'
  48. Requires-Dist: nose ; extra == 'testing'
  49. Requires-Dist: requests ; extra == 'testing'
  50. Requires-Dist: xmlschema ; extra == 'testing'
  51. .. image:: https://docs.pytest.org/en/stable/_static/pytest1.png
  52. :target: https://docs.pytest.org/en/stable/
  53. :align: center
  54. :alt: pytest
  55. ------
  56. .. image:: https://img.shields.io/pypi/v/pytest.svg
  57. :target: https://pypi.org/project/pytest/
  58. .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
  59. :target: https://anaconda.org/conda-forge/pytest
  60. .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
  61. :target: https://pypi.org/project/pytest/
  62. .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/master/graph/badge.svg
  63. :target: https://codecov.io/gh/pytest-dev/pytest
  64. :alt: Code coverage Status
  65. .. image:: https://travis-ci.org/pytest-dev/pytest.svg?branch=master
  66. :target: https://travis-ci.org/pytest-dev/pytest
  67. .. image:: https://github.com/pytest-dev/pytest/workflows/main/badge.svg
  68. :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Amain
  69. .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  70. :target: https://github.com/psf/black
  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. The ``pytest`` framework makes it easy to write small tests, yet
  77. scales to support complex functional testing for applications and libraries.
  78. An example of a simple test:
  79. .. code-block:: python
  80. # content of test_sample.py
  81. def inc(x):
  82. return x + 1
  83. def test_answer():
  84. assert inc(3) == 5
  85. To execute it::
  86. $ pytest
  87. ============================= test session starts =============================
  88. collected 1 items
  89. test_sample.py F
  90. ================================== FAILURES ===================================
  91. _________________________________ test_answer _________________________________
  92. def test_answer():
  93. > assert inc(3) == 5
  94. E assert 4 == 5
  95. E + where 4 = inc(3)
  96. test_sample.py:5: AssertionError
  97. ========================== 1 failed in 0.04 seconds ===========================
  98. 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.
  99. Features
  100. --------
  101. - Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/assert.html>`_ (no need to remember ``self.assert*`` names)
  102. - `Auto-discovery
  103. <https://docs.pytest.org/en/stable/goodpractices.html#python-test-discovery>`_
  104. of test modules and functions
  105. - `Modular fixtures <https://docs.pytest.org/en/stable/fixture.html>`_ for
  106. managing small or parametrized long-lived test resources
  107. - Can run `unittest <https://docs.pytest.org/en/stable/unittest.html>`_ (or trial),
  108. `nose <https://docs.pytest.org/en/stable/nose.html>`_ test suites out of the box
  109. - Python 3.6+ and PyPy3
  110. - Rich plugin architecture, with over 850+ `external plugins <http://plugincompat.herokuapp.com>`_ and thriving community
  111. Documentation
  112. -------------
  113. For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
  114. Bugs/Requests
  115. -------------
  116. Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
  117. Changelog
  118. ---------
  119. Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
  120. Support pytest
  121. --------------
  122. `Open Collective`_ is an online funding platform for open and transparent communities.
  123. It provides tools to raise money and share your finances in full transparency.
  124. It is the platform of choice for individuals and companies that want to make one-time or
  125. monthly donations directly to the project.
  126. See more details in the `pytest collective`_.
  127. .. _Open Collective: https://opencollective.com
  128. .. _pytest collective: https://opencollective.com/pytest
  129. pytest for enterprise
  130. ---------------------
  131. Available as part of the Tidelift Subscription.
  132. The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
  133. maintenance for the open source dependencies you use to build your applications.
  134. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
  135. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_
  136. Security
  137. ^^^^^^^^
  138. pytest has never been associated with a security vulnerability, but in any case, to report a
  139. security vulnerability please use the `Tidelift security contact <https://tidelift.com/security>`_.
  140. Tidelift will coordinate the fix and disclosure.
  141. License
  142. -------
  143. Copyright Holger Krekel and others, 2004-2020.
  144. Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
  145. .. _`MIT`: https://github.com/pytest-dev/pytest/blob/master/LICENSE