Skip to content

Typing support for settings fixture? #1257

@dave-v

Description

@dave-v

I couldn't find a documented way to type the settings fixture, but from digging through the source code, it looks like the pytest_django.fixtures.SettingsWrapper class is the most accurate choice.

I noticed that previously some of the fixtures were exposed for the purposes of typing, such as DjangoAssertNumQueries: 16ee779.

Is there a particular reason settings was left out? Is there a recommended way to type annotate this?
If it's just a case of applying a similar change to the commit above, I'm happy to contribute a PR.

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