Today, when you simulate a factory, you have to do something like this afterward to get to its errors:
factory.simulate()
errors = {
component.name: [error.to_dict() for error in component.errors]
for component in factory.components
if len(component.errors) > 0
}
That (or a more feature-rich version of it) should be a function of a factory.
Today, when you simulate a factory, you have to do something like this afterward to get to its errors:
That (or a more feature-rich version of it) should be a function of a factory.