Update factory-boy's .generate to evaluate

Co-Authored-By: Timo Halbesma <timo@halbesma.com>
This commit is contained in:
Bruno Alla 2021-01-24 14:20:39 +00:00
parent c077028310
commit b7c95f6eed

View File

@ -23,7 +23,7 @@ class UserFactory(DjangoModelFactory):
digits=True, digits=True,
upper_case=True, upper_case=True,
lower_case=True, lower_case=True,
).generate(params={"locale": None}) ).evaluate(None, None, extra={"locale": None})
) )
self.set_password(password) self.set_password(password)