Skip to content

Users

These fixtures are related to Django users.

Functions

user

user(user_create) -> TypeUser

Exposes Django user object.

Shortcut for user_create fixture.

def test_this(user):
    username = user.username

Note

User password is accessible via password_plain attribute.


user_create

user_create(user_model)

Allows Django user object generation.

def test_this(user_create):
    user = user_create()

Note

User password is accessible via password_plain attribute.


user_model

user_model() -> TypeUser

Returns user model class.

def test_this(user_model):
    model_cls = user_model