Skip to content

Commit

Permalink
Honor passed password for UserFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
bioworkflows authored Jan 19, 2020
1 parent 1609d44 commit 3f6562c
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 3f6562c

Please sign in to comment.