mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
Honor passed password for UserFactory
This commit is contained in:
parent
1609d4410e
commit
3f6562c7fe
|
@ -12,7 +12,7 @@ class UserFactory(DjangoModelFactory):
|
|||
|
||||
@post_generation
|
||||
def password(self, create: bool, extracted: Sequence[Any], **kwargs):
|
||||
password = Faker(
|
||||
password = extracted if extracted else Faker(
|
||||
"password",
|
||||
length=42,
|
||||
special_chars=True,
|
||||
|
|
Loading…
Reference in New Issue
Block a user