pytest-django


Namepytest-django JSON
Version 3.2.1 PyPI version JSON
download
home_pagehttps://pytest-django.readthedocs.io/
SummaryA Django plugin for pytest.
upload_time2018-04-14 13:13:54
maintainerAndreas Pelme
docs_urlNone
authorAndreas Pelme
requires_python>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/pypi/v/pytest-django.svg?style=flat
    :alt: PyPI Version
    :target: https://pypi.python.org/pypi/pytest-django

.. image:: https://img.shields.io/pypi/pyversions/pytest-django.svg
    :alt: Supported Python versions
    :target: https://pypi.python.org/pypi/pytest-django

.. image:: https://travis-ci.org/pytest-dev/pytest-django.svg?branch=master
    :alt: Build Status
    :target: https://travis-ci.org/pytest-dev/pytest-django

.. image:: https://img.shields.io/codecov/c/github/pytest-dev/pytest-django.svg?style=flat
    :alt: Coverage
    :target: https://codecov.io/gh/pytest-dev/pytest-django

Welcome to pytest-django!
=========================

pytest-django allows you to test your Django project/applications with the
`pytest testing tool <https://pytest.org/>`_.

* `Quick start / tutorial
  <https://pytest-django.readthedocs.io/en/latest/tutorial.html>`_
* `Changelog <https://pytest-django.readthedocs.io/en/latest/changelog.html>`_
* Full documentation: https://pytest-django.readthedocs.io/en/latest/
* `Contribution docs
  <https://pytest-django.readthedocs.io/en/latest/contributing.html>`_
* Version compatibility:

  * Django: 1.8-1.11, 2.0 and latest master branch (compatible at the time of each release)
  * Python: CPython 2.7, 3.4-3.6 or PyPy 2, 3
  * pytest: >2.9.x

* Licence: BSD
* Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler
* `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_
* GitHub repository: https://github.com/pytest-dev/pytest-django
* `Issue tracker <http://github.com/pytest-dev/pytest-django/issues>`_
* `Python Package Index (PyPI) <https://pypi.python.org/pypi/pytest-django/>`_

Install pytest-django
---------------------

::

    pip install pytest-django

Why would I use this instead of Django's `manage.py test` command?
------------------------------------------------------------------

Running your test suite with pytest-django allows you to tap into the features
that are already present in pytest. Here are some advantages:

* `Manage test dependencies with pytest fixtures. <https://pytest.org/en/latest/fixture.html>`_
* Less boilerplate tests: no need to import unittest, create a subclass with methods. Write tests as regular functions.
* Database re-use: no need to re-create the test database for every test run.
* Run tests in multiple processes for increased speed (with the pytest-xdist plugin).
* Make use of other `pytest plugins <https://pytest.org/en/latest/plugins.html>`_.
* Works with both worlds: Existing unittest-style TestCase's still work without any modifications.

See the `pytest documentation <https://pytest.org/en/latest/>`_ for more information on pytest itself.



            

Raw data

            {
    "maintainer": "Andreas Pelme", 
    "docs_url": null, 
    "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", 
    "maintainer_email": "andreas@pelme.se", 
    "keywords": "", 
    "upload_time": "2018-04-14 13:13:54", 
    "author": "Andreas Pelme", 
    "home_page": "https://pytest-django.readthedocs.io/", 
    "download_url": "https://files.pythonhosted.org/packages/97/f0/3983b5b372f56809883aca3563f839ee5eee6c64e1f1d664ff1019bdca63/pytest-django-3.2.1.tar.gz", 
    "platform": "", 
    "version": "3.2.1", 
    "description": ".. image:: https://img.shields.io/pypi/v/pytest-django.svg?style=flat\n    :alt: PyPI Version\n    :target: https://pypi.python.org/pypi/pytest-django\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-django.svg\n    :alt: Supported Python versions\n    :target: https://pypi.python.org/pypi/pytest-django\n\n.. image:: https://travis-ci.org/pytest-dev/pytest-django.svg?branch=master\n    :alt: Build Status\n    :target: https://travis-ci.org/pytest-dev/pytest-django\n\n.. image:: https://img.shields.io/codecov/c/github/pytest-dev/pytest-django.svg?style=flat\n    :alt: Coverage\n    :target: https://codecov.io/gh/pytest-dev/pytest-django\n\nWelcome to pytest-django!\n=========================\n\npytest-django allows you to test your Django project/applications with the\n`pytest testing tool <https://pytest.org/>`_.\n\n* `Quick start / tutorial\n  <https://pytest-django.readthedocs.io/en/latest/tutorial.html>`_\n* `Changelog <https://pytest-django.readthedocs.io/en/latest/changelog.html>`_\n* Full documentation: https://pytest-django.readthedocs.io/en/latest/\n* `Contribution docs\n  <https://pytest-django.readthedocs.io/en/latest/contributing.html>`_\n* Version compatibility:\n\n  * Django: 1.8-1.11, 2.0 and latest master branch (compatible at the time of each release)\n  * Python: CPython 2.7, 3.4-3.6 or PyPy 2, 3\n  * pytest: >2.9.x\n\n* Licence: BSD\n* Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler\n* `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_\n* GitHub repository: https://github.com/pytest-dev/pytest-django\n* `Issue tracker <http://github.com/pytest-dev/pytest-django/issues>`_\n* `Python Package Index (PyPI) <https://pypi.python.org/pypi/pytest-django/>`_\n\nInstall pytest-django\n---------------------\n\n::\n\n    pip install pytest-django\n\nWhy would I use this instead of Django's `manage.py test` command?\n------------------------------------------------------------------\n\nRunning your test suite with pytest-django allows you to tap into the features\nthat are already present in pytest. Here are some advantages:\n\n* `Manage test dependencies with pytest fixtures. <https://pytest.org/en/latest/fixture.html>`_\n* Less boilerplate tests: no need to import unittest, create a subclass with methods. Write tests as regular functions.\n* Database re-use: no need to re-create the test database for every test run.\n* Run tests in multiple processes for increased speed (with the pytest-xdist plugin).\n* Make use of other `pytest plugins <https://pytest.org/en/latest/plugins.html>`_.\n* Works with both worlds: Existing unittest-style TestCase's still work without any modifications.\n\nSee the `pytest documentation <https://pytest.org/en/latest/>`_ for more information on pytest itself.\n\n\n", 
    "lcname": "pytest-django", 
    "name": "pytest-django", 
    "github": false, 
    "bugtrack_url": null, 
    "license": "BSD-3-Clause", 
    "summary": "A Django plugin for pytest.", 
    "split_keywords": [], 
    "author_email": "andreas@pelme.se", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2018-04-14T13:13:53", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://files.pythonhosted.org/packages/c3/ab/b451d67d6b3d67653eb50757984ff7b4d72b64a9e05acab6b206c8c1982a/pytest_django-3.2.1-py2.py3-none-any.whl", 
            "md5_digest": "2713253f34f38a3aa53a02a26fb8d24a", 
            "downloads": -1, 
            "filename": "pytest_django-3.2.1-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "digests": {
                "sha256": "534505e0261cc566279032d9d887f844235342806fd63a6925689670fa1b29d7", 
                "md5": "2713253f34f38a3aa53a02a26fb8d24a"
            }, 
            "size": 17430
        }, 
        {
            "has_sig": false, 
            "upload_time": "2018-04-14T13:13:54", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://files.pythonhosted.org/packages/97/f0/3983b5b372f56809883aca3563f839ee5eee6c64e1f1d664ff1019bdca63/pytest-django-3.2.1.tar.gz", 
            "md5_digest": "f9f5ea1d686dfd9abcf7b55c855e3433", 
            "downloads": -1, 
            "filename": "pytest-django-3.2.1.tar.gz", 
            "packagetype": "sdist", 
            "digests": {
                "sha256": "7501942093db2250a32a4e36826edfc542347bb9b26c78ed0649cdcfd49e5789", 
                "md5": "f9f5ea1d686dfd9abcf7b55c855e3433"
            }, 
            "size": 63706
        }
    ], 
    "_id": null
}