Skip to content

Commit

Permalink
Merge pull request #1 from bioworkflows/patch-1
Browse files Browse the repository at this point in the history
Honor passed password for UserFactory
  • Loading branch information
BoPeng authored Jan 19, 2020
2 parents 1609d44 + 3f6562c commit c231a26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c231a26

Please sign in to comment.