wagtail / wagtail-factories

Factory boy classes for wagtail
http://wagtail-factories.readthedocs.io/en/latest/
MIT License
102 stars 40 forks source link

Add automatic generation of stream block factories #87

Open jams2 opened 6 months ago

jams2 commented 6 months ago

Currently, to use stream field factories for non-trivial stream fields, a user needs to:

This means a typical Wagtail codebase may have tens of block factory classes that provide little other than boilerplate, and maybe some default values.

We should provide functionality for automatically generating the block factories, so that users of the library can avoid writing boilerplate for boilerplate's sake.

An ideal implementation would: