How do I make FactoryBoy ImageField generate an image before calling save ()?
Right now (Factory Boy version 2.4.1.) With this code:
class ImageFactory(factory.django.DjangoModelFactory): class Meta: model = Image image = factory.django.ImageField(width=1024, height=768)
at the time of saving, so if the model
overridden and its function works with
, it will not work. And this is definitely my business.
So - how to make the image generated before the call
source to share