I'm a fresher in factory_boy. In my code, I import factory
and then used this import to access the fuzzy like factory.fuzzy
then it shows error as module 'factory' has no attribute 'fuzzy'
.
I solved this problem by again importing like this
import factory from factory import fuzzy
by doing so there were no errors.
What is the reason for this!
Aucun commentaire:
Enregistrer un commentaire