Factory Boy 3.0 was released earlier today with a breaking change to imports.
I'm now getting this error: AttributeError: module 'factory' has no attribute 'DjangoModelFactory
here's the full stack trace:
/blocks/tests/media_block_tests.py:8: in <module>
import wagtail_factories
/usr/local/lib/python3.8/site-packages/wagtail_factories/__init__.py:1: in <module>
from .blocks import *
/usr/local/lib/python3.8/site-packages/wagtail_factories/blocks.py:8: in <module>
from wagtail_factories.factories import ImageFactory
/usr/local/lib/python3.8/site-packages/wagtail_factories/factories.py:42: in <module>
class MP_NodeFactory(factory.DjangoModelFactory):
E AttributeError: module 'factory' has no attribute 'DjangoModelFactory'
Factory Boy 3.0 was released earlier today with a breaking change to imports.
I'm now getting this error:
AttributeError: module 'factory' has no attribute 'DjangoModelFactory
here's the full stack trace: