Skip to content

Document use of authenticated client and django_user_model #553

Closed
@shacker

Description

@shacker

From my first reading of the docs, it appeared that pytest-django provided an authenticatable admin user (admin_client) or an anonymous standard user (client) but no way to authenticate a normal user. Only after reading the source code did I discover that client.login() was possible (which makes sense now that I grok that it wraps Django's test client, but wasn't clear at first).

So I started to document that, then realized the docs could use additional general cleanup in places, so am making a PR for a general helpers doc tweak.

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