PKG-INFO 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. Metadata-Version: 2.1
  2. Name: pytest
  3. Version: 4.6.11
  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. Description: .. image:: https://docs.pytest.org/en/latest/_static/pytest1.png
  11. :target: https://docs.pytest.org/en/latest/
  12. :align: center
  13. :alt: pytest
  14. ------
  15. .. image:: https://img.shields.io/pypi/v/pytest.svg
  16. :target: https://pypi.org/project/pytest/
  17. .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
  18. :target: https://anaconda.org/conda-forge/pytest
  19. .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
  20. :target: https://pypi.org/project/pytest/
  21. .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/master/graph/badge.svg
  22. :target: https://codecov.io/gh/pytest-dev/pytest
  23. :alt: Code coverage Status
  24. .. image:: https://travis-ci.org/pytest-dev/pytest.svg?branch=master
  25. :target: https://travis-ci.org/pytest-dev/pytest
  26. .. image:: https://dev.azure.com/pytest-dev/pytest/_apis/build/status/pytest-CI?branchName=master
  27. :target: https://dev.azure.com/pytest-dev/pytest
  28. .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  29. :target: https://github.com/python/black
  30. .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
  31. :target: https://www.codetriage.com/pytest-dev/pytest
  32. The ``pytest`` framework makes it easy to write small tests, yet
  33. scales to support complex functional testing for applications and libraries.
  34. An example of a simple test:
  35. .. code-block:: python
  36. # content of test_sample.py
  37. def inc(x):
  38. return x + 1
  39. def test_answer():
  40. assert inc(3) == 5
  41. To execute it::
  42. $ pytest
  43. ============================= test session starts =============================
  44. collected 1 items
  45. test_sample.py F
  46. ================================== FAILURES ===================================
  47. _________________________________ test_answer _________________________________
  48. def test_answer():
  49. > assert inc(3) == 5
  50. E assert 4 == 5
  51. E + where 4 = inc(3)
  52. test_sample.py:5: AssertionError
  53. ========================== 1 failed in 0.04 seconds ===========================
  54. 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.
  55. Features
  56. --------
  57. - Detailed info on failing `assert statements <https://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
  58. - `Auto-discovery
  59. <https://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
  60. of test modules and functions;
  61. - `Modular fixtures <https://docs.pytest.org/en/latest/fixture.html>`_ for
  62. managing small or parametrized long-lived test resources;
  63. - Can run `unittest <https://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
  64. `nose <https://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
  65. - Python 2.7, Python 3.4+, PyPy 2.3, Jython 2.5 (untested);
  66. - Rich plugin architecture, with over 315+ `external plugins <http://plugincompat.herokuapp.com>`_ and thriving community;
  67. Documentation
  68. -------------
  69. For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/latest/.
  70. Bugs/Requests
  71. -------------
  72. Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
  73. Changelog
  74. ---------
  75. Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
  76. Support pytest
  77. --------------
  78. You can support pytest by obtaining a `Tideflift subscription`_.
  79. Tidelift gives software development teams a single source for purchasing and maintaining their software,
  80. with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.
  81. .. _`Tideflift subscription`: https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=readme
  82. Security
  83. ^^^^^^^^
  84. pytest has never been associated with a security vunerability, but in any case, to report a
  85. security vulnerability please use the `Tidelift security contact <https://tidelift.com/security>`_.
  86. Tidelift will coordinate the fix and disclosure.
  87. License
  88. -------
  89. Copyright Holger Krekel and others, 2004-2020.
  90. Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
  91. .. _`MIT`: https://github.com/pytest-dev/pytest/blob/master/LICENSE
  92. Keywords: test,unittest
  93. Platform: unix
  94. Platform: linux
  95. Platform: osx
  96. Platform: cygwin
  97. Platform: win32
  98. Classifier: Development Status :: 6 - Mature
  99. Classifier: Intended Audience :: Developers
  100. Classifier: License :: OSI Approved :: MIT License
  101. Classifier: Operating System :: POSIX
  102. Classifier: Operating System :: Microsoft :: Windows
  103. Classifier: Operating System :: MacOS :: MacOS X
  104. Classifier: Topic :: Software Development :: Testing
  105. Classifier: Topic :: Software Development :: Libraries
  106. Classifier: Topic :: Utilities
  107. Classifier: Programming Language :: Python :: 2
  108. Classifier: Programming Language :: Python :: 2.7
  109. Classifier: Programming Language :: Python :: 3
  110. Classifier: Programming Language :: Python :: 3.4
  111. Classifier: Programming Language :: Python :: 3.5
  112. Classifier: Programming Language :: Python :: 3.6
  113. Classifier: Programming Language :: Python :: 3.7
  114. Classifier: Programming Language :: Python :: 3.8
  115. Classifier: Programming Language :: Python :: 3.9
  116. Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
  117. Provides-Extra: testing