METADATA 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Metadata-Version: 2.1
  2. Name: pytest
  3. Version: 3.7.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 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 :: 2
  26. Classifier: Programming Language :: Python :: 2.7
  27. Classifier: Programming Language :: Python :: 3
  28. Classifier: Programming Language :: Python :: 3.4
  29. Classifier: Programming Language :: Python :: 3.5
  30. Classifier: Programming Language :: Python :: 3.6
  31. Classifier: Programming Language :: Python :: 3.7
  32. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  33. Requires-Dist: py (>=1.5.0)
  34. Requires-Dist: six (>=1.10.0)
  35. Requires-Dist: setuptools
  36. Requires-Dist: attrs (>=17.4.0)
  37. Requires-Dist: more-itertools (>=4.0.0)
  38. Requires-Dist: atomicwrites (>=1.0)
  39. Requires-Dist: pluggy (>=0.7)
  40. Requires-Dist: funcsigs; python_version < "3.0"
  41. Requires-Dist: pathlib2 (>=2.2.0); python_version < "3.6"
  42. Requires-Dist: colorama; sys_platform == "win32"
  43. .. image:: https://docs.pytest.org/en/latest/_static/pytest1.png
  44. :target: https://docs.pytest.org/en/latest/
  45. :align: center
  46. :alt: pytest
  47. ------
  48. .. image:: https://img.shields.io/pypi/v/pytest.svg
  49. :target: https://pypi.org/project/pytest/
  50. .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
  51. :target: https://anaconda.org/conda-forge/pytest
  52. .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
  53. :target: https://pypi.org/project/pytest/
  54. .. image:: https://img.shields.io/coveralls/pytest-dev/pytest/master.svg
  55. :target: https://coveralls.io/r/pytest-dev/pytest
  56. .. image:: https://travis-ci.org/pytest-dev/pytest.svg?branch=master
  57. :target: https://travis-ci.org/pytest-dev/pytest
  58. .. image:: https://ci.appveyor.com/api/projects/status/mrgbjaua7t33pg6b?svg=true
  59. :target: https://ci.appveyor.com/project/pytestbot/pytest
  60. .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  61. :target: https://github.com/ambv/black
  62. .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
  63. :target: https://www.codetriage.com/pytest-dev/pytest
  64. The ``pytest`` framework makes it easy to write small tests, yet
  65. scales to support complex functional testing for applications and libraries.
  66. An example of a simple test:
  67. .. code-block:: python
  68. # content of test_sample.py
  69. def inc(x):
  70. return x + 1
  71. def test_answer():
  72. assert inc(3) == 5
  73. To execute it::
  74. $ pytest
  75. ============================= test session starts =============================
  76. collected 1 items
  77. test_sample.py F
  78. ================================== FAILURES ===================================
  79. _________________________________ test_answer _________________________________
  80. def test_answer():
  81. > assert inc(3) == 5
  82. E assert 4 == 5
  83. E + where 4 = inc(3)
  84. test_sample.py:5: AssertionError
  85. ========================== 1 failed in 0.04 seconds ===========================
  86. 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.
  87. Features
  88. --------
  89. - Detailed info on failing `assert statements <https://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
  90. - `Auto-discovery
  91. <https://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
  92. of test modules and functions;
  93. - `Modular fixtures <https://docs.pytest.org/en/latest/fixture.html>`_ for
  94. managing small or parametrized long-lived test resources;
  95. - Can run `unittest <https://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
  96. `nose <https://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
  97. - Python 2.7, Python 3.4+, PyPy 2.3, Jython 2.5 (untested);
  98. - Rich plugin architecture, with over 315+ `external plugins <http://plugincompat.herokuapp.com>`_ and thriving community;
  99. Documentation
  100. -------------
  101. For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/latest/.
  102. Bugs/Requests
  103. -------------
  104. Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
  105. Changelog
  106. ---------
  107. Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
  108. License
  109. -------
  110. Copyright Holger Krekel and others, 2004-2018.
  111. Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
  112. .. _`MIT`: https://github.com/pytest-dev/pytest/blob/master/LICENSE