METADATA 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Metadata-Version: 2.1
  2. Name: pytest-django
  3. Version: 4.5.2
  4. Summary: A Django plugin for pytest.
  5. Home-page: https://pytest-django.readthedocs.io/
  6. Author: Andreas Pelme
  7. Author-email: andreas@pelme.se
  8. Maintainer: Andreas Pelme
  9. Maintainer-email: andreas@pelme.se
  10. License: BSD-3-Clause
  11. Project-URL: Source, https://github.com/pytest-dev/pytest-django
  12. Project-URL: Changelog, https://pytest-django.readthedocs.io/en/latest/changelog.html
  13. Platform: UNKNOWN
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Framework :: Django
  16. Classifier: Framework :: Django :: 2.2
  17. Classifier: Framework :: Django :: 3.1
  18. Classifier: Framework :: Django :: 3.2
  19. Classifier: Framework :: Django :: 4.0
  20. Classifier: Intended Audience :: Developers
  21. Classifier: License :: OSI Approved :: BSD License
  22. Classifier: Operating System :: OS Independent
  23. Classifier: Programming Language :: Python
  24. Classifier: Programming Language :: Python :: 3.5
  25. Classifier: Programming Language :: Python :: 3.6
  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 :: Implementation :: CPython
  31. Classifier: Programming Language :: Python :: Implementation :: PyPy
  32. Classifier: Topic :: Software Development :: Testing
  33. Requires-Python: >=3.5
  34. Description-Content-Type: text/x-rst
  35. License-File: LICENSE
  36. Requires-Dist: pytest (>=5.4.0)
  37. Provides-Extra: docs
  38. Requires-Dist: sphinx ; extra == 'docs'
  39. Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
  40. Provides-Extra: testing
  41. Requires-Dist: Django ; extra == 'testing'
  42. Requires-Dist: django-configurations (>=2.0) ; extra == 'testing'
  43. .. image:: https://img.shields.io/pypi/v/pytest-django.svg?style=flat
  44. :alt: PyPI Version
  45. :target: https://pypi.python.org/pypi/pytest-django
  46. .. image:: https://img.shields.io/pypi/pyversions/pytest-django.svg
  47. :alt: Supported Python versions
  48. :target: https://pypi.python.org/pypi/pytest-django
  49. .. image:: https://github.com/pytest-dev/pytest-django/workflows/main/badge.svg
  50. :alt: Build Status
  51. :target: https://github.com/pytest-dev/pytest-django/actions
  52. .. image:: https://img.shields.io/pypi/djversions/pytest-django.svg
  53. :alt: Supported Django versions
  54. :target: https://pypi.org/project/pytest-django/
  55. .. image:: https://img.shields.io/codecov/c/github/pytest-dev/pytest-django.svg?style=flat
  56. :alt: Coverage
  57. :target: https://codecov.io/gh/pytest-dev/pytest-django
  58. Welcome to pytest-django!
  59. =========================
  60. pytest-django allows you to test your Django project/applications with the
  61. `pytest testing tool <https://pytest.org/>`_.
  62. * `Quick start / tutorial
  63. <https://pytest-django.readthedocs.io/en/latest/tutorial.html>`_
  64. * `Changelog <https://pytest-django.readthedocs.io/en/latest/changelog.html>`_
  65. * Full documentation: https://pytest-django.readthedocs.io/en/latest/
  66. * `Contribution docs
  67. <https://pytest-django.readthedocs.io/en/latest/contributing.html>`_
  68. * Version compatibility:
  69. * Django: 2.2, 3.1, 3.2, 4.0 and latest main branch (compatible at the time of
  70. each release)
  71. * Python: CPython>=3.5 or PyPy 3
  72. * pytest: >=5.4
  73. For compatibility with older versions, use the pytest-django 3.*.* series.
  74. * Licence: BSD
  75. * Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler
  76. * `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_
  77. * GitHub repository: https://github.com/pytest-dev/pytest-django
  78. * `Issue tracker <http://github.com/pytest-dev/pytest-django/issues>`_
  79. * `Python Package Index (PyPI) <https://pypi.python.org/pypi/pytest-django/>`_
  80. Install pytest-django
  81. ---------------------
  82. ::
  83. pip install pytest-django
  84. Why would I use this instead of Django's `manage.py test` command?
  85. ------------------------------------------------------------------
  86. Running your test suite with pytest-django allows you to tap into the features
  87. that are already present in pytest. Here are some advantages:
  88. * `Manage test dependencies with pytest fixtures. <https://pytest.org/en/latest/how-to/fixtures.html>`_
  89. * Less boilerplate tests: no need to import unittest, create a subclass with methods. Write tests as regular functions.
  90. * Database re-use: no need to re-create the test database for every test run.
  91. * Run tests in multiple processes for increased speed (with the pytest-xdist plugin).
  92. * Make use of other `pytest plugins <https://pytest.org/en/latest/how-to/plugins.html>`_.
  93. * Works with both worlds: Existing unittest-style TestCase's still work without any modifications.
  94. See the `pytest documentation <https://pytest.org/en/latest/>`_ for more information on pytest itself.