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.

202 lines
6.8 KiB

4 years ago
  1. Metadata-Version: 2.1
  2. Name: pytest
  3. Version: 5.3.2
  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 license
  8. Project-URL: Source, https://github.com/pytest-dev/pytest
  9. Project-URL: Tracker, https://github.com/pytest-dev/pytest/issues
  10. Keywords: test,unittest
  11. Platform: unix
  12. Platform: linux
  13. Platform: osx
  14. Platform: cygwin
  15. Platform: win32
  16. Classifier: Development Status :: 6 - Mature
  17. Classifier: Intended Audience :: Developers
  18. Classifier: License :: OSI Approved :: MIT License
  19. Classifier: Operating System :: POSIX
  20. Classifier: Operating System :: Microsoft :: Windows
  21. Classifier: Operating System :: MacOS :: MacOS X
  22. Classifier: Topic :: Software Development :: Testing
  23. Classifier: Topic :: Software Development :: Libraries
  24. Classifier: Topic :: Utilities
  25. Classifier: Programming Language :: Python :: 3 :: Only
  26. Classifier: Programming Language :: Python :: 3.5
  27. Classifier: Programming Language :: Python :: 3.6
  28. Classifier: Programming Language :: Python :: 3.7
  29. Classifier: Programming Language :: Python :: 3.8
  30. Requires-Python: >=3.5
  31. Requires-Dist: py (>=1.5.0)
  32. Requires-Dist: packaging
  33. Requires-Dist: attrs (>=17.4.0)
  34. Requires-Dist: more-itertools (>=4.0.0)
  35. Requires-Dist: pluggy (<1.0,>=0.12)
  36. Requires-Dist: wcwidth
  37. Requires-Dist: pathlib2 (>=2.2.0) ; python_version < "3.6"
  38. Requires-Dist: importlib-metadata (>=0.12) ; python_version < "3.8"
  39. Requires-Dist: atomicwrites (>=1.0) ; sys_platform == "win32"
  40. Requires-Dist: colorama ; sys_platform == "win32"
  41. Provides-Extra: testing
  42. Requires-Dist: argcomplete ; extra == 'testing'
  43. Requires-Dist: hypothesis (>=3.56) ; extra == 'testing'
  44. Requires-Dist: mock ; extra == 'testing'
  45. Requires-Dist: nose ; extra == 'testing'
  46. Requires-Dist: requests ; extra == 'testing'
  47. Requires-Dist: xmlschema ; extra == 'testing'
  48. .. image:: https://docs.pytest.org/en/latest/_static/pytest1.png
  49. :target: https://docs.pytest.org/en/latest/
  50. :align: center
  51. :alt: pytest
  52. ------
  53. .. image:: https://img.shields.io/pypi/v/pytest.svg
  54. :target: https://pypi.org/project/pytest/
  55. .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
  56. :target: https://anaconda.org/conda-forge/pytest
  57. .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
  58. :target: https://pypi.org/project/pytest/
  59. .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/master/graph/badge.svg
  60. :target: https://codecov.io/gh/pytest-dev/pytest
  61. :alt: Code coverage Status
  62. .. image:: https://travis-ci.org/pytest-dev/pytest.svg?branch=master
  63. :target: https://travis-ci.org/pytest-dev/pytest
  64. .. image:: https://dev.azure.com/pytest-dev/pytest/_apis/build/status/pytest-CI?branchName=master
  65. :target: https://dev.azure.com/pytest-dev/pytest
  66. .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  67. :target: https://github.com/psf/black
  68. .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
  69. :target: https://www.codetriage.com/pytest-dev/pytest
  70. The ``pytest`` framework makes it easy to write small tests, yet
  71. scales to support complex functional testing for applications and libraries.
  72. An example of a simple test:
  73. .. code-block:: python
  74. # content of test_sample.py
  75. def inc(x):
  76. return x + 1
  77. def test_answer():
  78. assert inc(3) == 5
  79. To execute it::
  80. $ pytest
  81. ============================= test session starts =============================
  82. collected 1 items
  83. test_sample.py F
  84. ================================== FAILURES ===================================
  85. _________________________________ test_answer _________________________________
  86. def test_answer():
  87. > assert inc(3) == 5
  88. E assert 4 == 5
  89. E + where 4 = inc(3)
  90. test_sample.py:5: AssertionError
  91. ========================== 1 failed in 0.04 seconds ===========================
  92. Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/latest/getting-started.html#our-first-test-run>`_ for more examples.
  93. Features
  94. --------
  95. - Detailed info on failing `assert statements <https://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
  96. - `Auto-discovery
  97. <https://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
  98. of test modules and functions;
  99. - `Modular fixtures <https://docs.pytest.org/en/latest/fixture.html>`_ for
  100. managing small or parametrized long-lived test resources;
  101. - Can run `unittest <https://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
  102. `nose <https://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
  103. - Python 3.5+ and PyPy3;
  104. - Rich plugin architecture, with over 315+ `external plugins <http://plugincompat.herokuapp.com>`_ and thriving community;
  105. Documentation
  106. -------------
  107. For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/latest/.
  108. Bugs/Requests
  109. -------------
  110. Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
  111. Changelog
  112. ---------
  113. Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
  114. Support pytest
  115. --------------
  116. `Open Collective`_ is an online funding platform for open and transparent communities.
  117. It provide tools to raise money and share your finances in full transparency.
  118. It is the platform of choice for individuals and companies that want to make one-time or
  119. monthly donations directly to the project.
  120. See more datails in the `pytest collective`_.
  121. .. _Open Collective: https://opencollective.com
  122. .. _pytest collective: https://opencollective.com/pytest
  123. pytest for enterprise
  124. ---------------------
  125. Available as part of the Tidelift Subscription.
  126. The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
  127. maintenance for the open source dependencies you use to build your applications.
  128. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
  129. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_
  130. Security
  131. ^^^^^^^^
  132. pytest has never been associated with a security vulnerability, but in any case, to report a
  133. security vulnerability please use the `Tidelift security contact <https://tidelift.com/security>`_.
  134. Tidelift will coordinate the fix and disclosure.
  135. License
  136. -------
  137. Copyright Holger Krekel and others, 2004-2019.
  138. Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
  139. .. _`MIT`: https://github.com/pytest-dev/pytest/blob/master/LICENSE