Skip to content

Change plugin description when running pytest to clarify pytest-django from django itself #1222

@specialorange

Description

@specialorange

when you run pytest with pytest-django installed, you start the tests and get the header info, something like:

platform darwin -- Python 3.13.3, pytest-8.4.1, pluggy-1.6.0
django: version: 5.2.3, settings: my_project.settings (from ini)
rootdir: path/to/my_project
configfile: pytest.ini
plugins: anyio-4.9.0, django-4.11.1
collected 142 items                                                                                                                          

The plugins saying django-4.11.1 should read pytest-django-4.11.1. It is confusing if pytest is using multiple versions of django, especially when upgrading from django v4 to v5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions