Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test for union handling #489

Closed
wants to merge 1 commit into from
Closed

Conversation

guacs
Copy link
Member

@guacs guacs commented Jan 19, 2024

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 to polyfactory.factories.BaseFactory.get_field_value.

Close Issue(s)

@guacs guacs requested review from a team as code owners January 19, 2024 02:47
@guacs
Copy link
Member Author

guacs commented Jan 19, 2024

Pydantic v1 strikes again :/

@guacs
Copy link
Member Author

guacs commented Jan 20, 2024

Superseded by #491.

@guacs guacs closed this Jan 20, 2024
@guacs guacs deleted the union-generation-test branch January 20, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Broken union type generation since "polyfactory<2.6" (pydantic_factory)
1 participant