To fake images in model tests you can also use SimpleUploadedFile , just remember to set the content_type = “image/png” as I did in the snippet ...
確定! 回上一頁