Merge pull request #1 from bioworkflows/patch-1

Honor passed password for UserFactory
This commit is contained in:
Bo 2020-01-19 16:40:22 -06:00 committed by GitHub
commit c231a267c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,