pytest-django


Namepytest-django JSON
Version 4.9.0 PyPI version JSON
download
home_pageNone
SummaryA Django plugin for pytest.
upload_time2024-09-02 15:49:18
maintainerNone
docs_urlNone
authorNone
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: 4.2, 5.0, 5.1 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 previous pytest-django releases.

* Licence: BSD
* `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_
* GitHub repository: https://github.com/pytest-dev/pytest-django
* `Issue tracker <https://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": null,
    "name": "pytest-django",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Andreas Pelme <andreas@pelme.se>",
    "keywords": null,
    "author": null,
    "author_email": "Andreas Pelme <andreas@pelme.se>",
    "download_url": "https://files.pythonhosted.org/packages/02/c0/43c8b2528c24d7f1a48a47e3f7381f5ab2ae8c64634b0c3f4bd843063955/pytest_django-4.9.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: 4.2, 5.0, 5.1 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 previous pytest-django releases.\n\n* Licence: BSD\n* `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_\n* GitHub repository: https://github.com/pytest-dev/pytest-django\n* `Issue tracker <https://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.9.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": "47fe54f387ee1b41c9ad59e48fb8368a361fad0600fe404315e31a12bacaea7d",
                "md5": "fb82e56349f2a06350763921a04dda13",
                "sha256": "1d83692cb39188682dbb419ff0393867e9904094a549a7d38a3154d5731b2b99"
            },
            "downloads": -1,
            "filename": "pytest_django-4.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb82e56349f2a06350763921a04dda13",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 23723,
            "upload_time": "2024-09-02T15:49:17",
            "upload_time_iso_8601": "2024-09-02T15:49:17.127215Z",
            "url": "https://files.pythonhosted.org/packages/47/fe/54f387ee1b41c9ad59e48fb8368a361fad0600fe404315e31a12bacaea7d/pytest_django-4.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "02c043c8b2528c24d7f1a48a47e3f7381f5ab2ae8c64634b0c3f4bd843063955",
                "md5": "1bdf091a566d59ea443b586c54f784f9",
                "sha256": "8bf7bc358c9ae6f6fc51b6cebb190fe20212196e6807121f11bd6a3b03428314"
            },
            "downloads": -1,
            "filename": "pytest_django-4.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1bdf091a566d59ea443b586c54f784f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 84067,
            "upload_time": "2024-09-02T15:49:18",
            "upload_time_iso_8601": "2024-09-02T15:49:18.407941Z",
            "url": "https://files.pythonhosted.org/packages/02/c0/43c8b2528c24d7f1a48a47e3f7381f5ab2ae8c64634b0c3f4bd843063955/pytest_django-4.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-02 15:49:18",
    "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.34319s