This PR adds a test to confirm that the union handling is fixed. The fix was introduced in #468 as a result of removing the unwrapping of unions in polyfactory.utils.helpers.unwrap_annotation and moving it to polyfactory.factories.BaseFactory.get_field_value.
Description
This PR adds a test to confirm that the union handling is fixed. The fix was introduced in #468 as a result of removing the unwrapping of unions in
polyfactory.utils.helpers.unwrap_annotation
and moving it topolyfactory.factories.BaseFactory.get_field_value
.Close Issue(s)