Closed Ramon5 closed 3 years ago
Hi! Thanks for the report.
There is indeed something wrong with the latest release, but I haven't found the time to look into it — see #788 #787 #786 #785…
However, please note that the factory.Faker(...).generate()
method is private.
As described here, the params
dict should have been properly prepared before reaching the .generate()
function; but that fails in specific cases — with factory.Maybe
and class Params
.
Any update here? when do you plan to move this to pypi package? (kwargs.pop('locale') keyerror)
This has been fixed in #828; a new release should be made in the next couple of days :)
The problem
I have a old version in my project, then using Faker class, i generate faker name with Faker("name") but in newer versions i have using Faker("name").generate(), thats problem is, when i using the generate method without params, the 'locale' key error is getted
Proposed solution
If the developer does not provide a dictionary with a locale, a default locale is provided.
Extra notes
factory_boy version 3.1.0