A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://django-improved-user.readthedocs.io/en/latest/source/factories.html below:

Website Navigation


Test Factories — Django Improved User 2.1.0 documentation

Test Factories

Factories to make testing with Improved User easier

class improved_user.factories.UserFactory(**kwargs)[source]

Bases: DjangoModelFactory

Factory Boy factory for Improved User

Generates a user with a default password of password!. The user is active, but is not staff or a superuser. Any value can be overridden by passing in a value, as shown below.

UserFactory(
    password='mys3cr3tp4ssw0rd!',
    is_superuser=True,
)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4