Imagine a test case that magically find all of the
PageFactory subclasses within a project, and for each class found, test that:
I think this could easily be achieved by keeping a 'reference'
dict that gets populated via a metaclass when subclasses are defined (a bit like what Wagtail does with
We could ignore any factories that do not specify a
model value in their
Meta class. And maybe even introduce a new/optional
Meta option that could be used to explicitly opt-out of testing for a specific factory class.
Wagtails feature in the myths of many cultures. In Ancient Greece, they were a symbol of love and a gift from the Goddess Aphrodite. Some say they are harbingers of rain, beckoning it with their constantly wagging tails.
|Last Update||4 months ago|