{"library":"pytest-django","type":"library","category":null,"description":"pytest-django is an active plugin for the pytest testing framework that enables efficient testing of Django projects and applications. It integrates pytest's powerful fixture system, reduced boilerplate, and advanced test capabilities with Django's ORM and components. The library maintains a regular release cadence, with multiple minor versions and occasional major updates throughout the year, ensuring compatibility with the latest Django and Python versions.","language":"python","status":"active","version":"4.12.0","tags":["pytest","django","testing","plugin","python"],"install":[{"cmd":"pip install pytest-django","imports":["import pytest\n\n@pytest.mark.django_db\ndef test_my_database_function():\n    ...","def test_with_custom_setting(settings):\n    settings.DEBUG = True\n    assert settings.DEBUG is True","def test_my_view(client):\n    response = client.get('/my-url/')\n    assert response.status_code == 200","def test_admin_view(admin_client):\n    response = admin_client.get('/admin/')\n    assert response.status_code == 200"]}],"homepage":null,"github":"https://github.com/pytest-dev/pytest-django","docs":"https://pytest-django.readthedocs.io/","changelog":"https://pytest-django.readthedocs.io/en/latest/changelog.html","pypi":"https://pypi.org/project/pytest-django/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.6,"avg_import_s":0.48,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pytest-django/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":"verified"}}