Honor passed password for UserFactory

This commit is contained in:
Bo Peng 2020-01-19 16:21:27 -06:00 committed by GitHub
parent 1609d4410e
commit 3f6562c7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ class UserFactory(DjangoModelFactory):
@post_generation @post_generation
def password(self, create: bool, extracted: Sequence[Any], **kwargs): def password(self, create: bool, extracted: Sequence[Any], **kwargs):
password = Faker( password = extracted if extracted else Faker(
"password", "password",
length=42, length=42,
special_chars=True, special_chars=True,