{"id":13416037,"url":"https://github.com/pytest-dev/pytest-django","last_synced_at":"2025-05-10T10:43:49.267Z","repository":{"id":39096209,"uuid":"2484397","full_name":"pytest-dev/pytest-django","owner":"pytest-dev","description":"A Django plugin for pytest.","archived":false,"fork":false,"pushed_at":"2025-04-07T08:36:01.000Z","size":1654,"stargazers_count":1446,"open_issues_count":187,"forks_count":347,"subscribers_count":38,"default_branch":"main","last_synced_at":"2025-05-10T10:43:43.612Z","etag":null,"topics":["django","pytest","pytest-plugin","python","python3"],"latest_commit_sha":null,"homepage":"https://pytest-django.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytest-dev.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-09-29T19:35:55.000Z","updated_at":"2025-05-09T18:33:53.000Z","dependencies_parsed_at":"2023-10-25T23:00:28.243Z","dependency_job_id":"93adc88c-3ca0-471a-b16b-b1d6fddaefbb","html_url":"https://github.com/pytest-dev/pytest-django","commit_stats":{"total_commits":1159,"total_committers":159,"mean_commits":7.289308176100629,"dds":0.6842105263157895,"last_synced_commit":"1ffc3239387bcfadbd8aecfdfacf3d6b52b947f8"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/pytest-django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253404957,"owners_count":21903109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","pytest","pytest-plugin","python","python3"],"created_at":"2024-07-30T21:00:53.834Z","updated_at":"2025-05-10T10:43:49.220Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","readme":".. 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 \u003chttps://pytest.org/\u003e`_.\n\n* `Quick start / tutorial\n  \u003chttps://pytest-django.readthedocs.io/en/latest/tutorial.html\u003e`_\n* `Changelog \u003chttps://pytest-django.readthedocs.io/en/latest/changelog.html\u003e`_\n* Full documentation: https://pytest-django.readthedocs.io/en/latest/\n* `Contribution docs\n  \u003chttps://pytest-django.readthedocs.io/en/latest/contributing.html\u003e`_\n* Version compatibility:\n\n  * Django: 4.2, 5.0, 5.1, 5.2 and latest main branch (compatible at the time\n    of each release)\n  * Python: CPython\u003e=3.8 or PyPy 3\n  * pytest: \u003e=7.0\n\n  For compatibility with older versions, use previous pytest-django releases.\n\n* Licence: BSD\n* `All contributors \u003chttps://github.com/pytest-dev/pytest-django/contributors\u003e`_\n* GitHub repository: https://github.com/pytest-dev/pytest-django\n* `Issue tracker \u003chttps://github.com/pytest-dev/pytest-django/issues\u003e`_\n* `Python Package Index (PyPI) \u003chttps://pypi.python.org/pypi/pytest-django/\u003e`_\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. \u003chttps://pytest.org/en/latest/how-to/fixtures.html\u003e`_\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 \u003chttps://pytest.org/en/latest/how-to/plugins.html\u003e`_.\n* Works with both worlds: Existing unittest-style TestCase's still work without any modifications.\n\nSee the `pytest documentation \u003chttps://pytest.org/en/latest/\u003e`_ for more information on pytest itself.\n","funding_links":[],"categories":["Third-Party Packages","Python","Release Features","Testing","Best Django Admin Interface Resources","测试"],"sub_categories":["Testing","**🧪 Development \u0026 Testing Tools**","Podcasts"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Fpytest-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-django/lists"}