pytest-django


Namepytest-django JSON
Version 4.7.0 PyPI version JSON
download
home_page
SummaryA Django plugin for pytest.
upload_time2023-11-08 11:19:20
maintainer
docs_urlNone
author
requires_python>=3.8
licensepytest-django is released under the BSD (3-clause) license ---------------------------------------------------------- Copyright (c) 2015-2018, pytest-django authors (see AUTHORS file) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This version of pytest-django is a fork of pytest_django created by Ben Firshman. --------------------------------------------------------------------------------- Copyright (c) 2009, Ben Firshman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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://github.com/pytest-dev/pytest-django/workflows/main/badge.svg
    :alt: Build Status
    :target: https://github.com/pytest-dev/pytest-django/actions

.. image:: https://img.shields.io/pypi/djversions/pytest-django.svg
   :alt: Supported Django versions
   :target: https://pypi.org/project/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: 3.2, 4.1, 4.2, 5.0 and latest main branch (compatible at the time
    of each release)
  * Python: CPython>=3.8 or PyPy 3
  * pytest: >=7.0

  For compatibility with older versions, use the pytest-django 3.*.* series.

* 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/how-to/fixtures.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/how-to/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

            {
    "_id": null,
    "home_page": "",
    "name": "pytest-django",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Andreas Pelme <andreas@pelme.se>",
    "keywords": "",
    "author": "",
    "author_email": "Andreas Pelme <andreas@pelme.se>",
    "download_url": "https://files.pythonhosted.org/packages/e2/7a/025a7b663c06d9d648de533e96bd708ba7a4c6983c5fcac4439d00dfabd2/pytest-django-4.7.0.tar.gz",
    "platform": null,
    "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://github.com/pytest-dev/pytest-django/workflows/main/badge.svg\n    :alt: Build Status\n    :target: https://github.com/pytest-dev/pytest-django/actions\n\n.. image:: https://img.shields.io/pypi/djversions/pytest-django.svg\n   :alt: Supported Django versions\n   :target: https://pypi.org/project/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: 3.2, 4.1, 4.2, 5.0 and latest main branch (compatible at the time\n    of each release)\n  * Python: CPython>=3.8 or PyPy 3\n  * pytest: >=7.0\n\n  For compatibility with older versions, use the pytest-django 3.*.* series.\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/how-to/fixtures.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/how-to/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",
    "bugtrack_url": null,
    "license": "pytest-django is released under the BSD (3-clause) license ---------------------------------------------------------- Copyright (c) 2015-2018, pytest-django authors (see AUTHORS file) All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   This version of pytest-django is a fork of pytest_django created by Ben Firshman. --------------------------------------------------------------------------------- Copyright (c) 2009, Ben Firshman All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "A Django plugin for pytest.",
    "version": "4.7.0",
    "project_urls": {
        "Changelog": "https://pytest-django.readthedocs.io/en/latest/changelog.html",
        "Documentation": "https://pytest-django.readthedocs.io/",
        "Repository": "https://github.com/pytest-dev/pytest-django"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b29b0e1dbe147a1d198933d5c5ffe7913a4495a54c1100dfc7513fb20ef0cd2",
                "md5": "2493dfa6e92932f00f29c43927f13061",
                "sha256": "4e1c79d5261ade2dd58d91208017cd8f62cb4710b56e012ecd361d15d5d662a2"
            },
            "downloads": -1,
            "filename": "pytest_django-4.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2493dfa6e92932f00f29c43927f13061",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 23150,
            "upload_time": "2023-11-08T11:19:18",
            "upload_time_iso_8601": "2023-11-08T11:19:18.845864Z",
            "url": "https://files.pythonhosted.org/packages/6b/29/b0e1dbe147a1d198933d5c5ffe7913a4495a54c1100dfc7513fb20ef0cd2/pytest_django-4.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e27a025a7b663c06d9d648de533e96bd708ba7a4c6983c5fcac4439d00dfabd2",
                "md5": "8fffa6ed7fc7a3e0b2abc7a41134616b",
                "sha256": "92d6fd46b1d79b54fb6b060bbb39428073396cec717d5f2e122a990d4b6aa5e8"
            },
            "downloads": -1,
            "filename": "pytest-django-4.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8fffa6ed7fc7a3e0b2abc7a41134616b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 82819,
            "upload_time": "2023-11-08T11:19:20",
            "upload_time_iso_8601": "2023-11-08T11:19:20.647316Z",
            "url": "https://files.pythonhosted.org/packages/e2/7a/025a7b663c06d9d648de533e96bd708ba7a4c6983c5fcac4439d00dfabd2/pytest-django-4.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-08 11:19:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pytest-dev",
    "github_project": "pytest-django",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-django"
}
        
Elapsed time: 0.16256s