Which states that when If a DjangoModelFactory relates to an abstract model, be sure to declare the DjangoModelFactory as abstract I consulted the documentation on how to handle abstract models, but when I run the following test: class HeroContentFactoryTest(TestCase):įactoryError: Cannot generate instances of abstract factory HeroContentFactory Ensure is set and is either not set or False.īut this seems to go directly against the course recommended in the official documentation, I am writing tests for a Django application and I am currently running into the following problem:įor which I created the following factory:Ĭlass HeroContentFactory(factory.DjangoModelFactory):
0 Comments
Leave a Reply. |