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

Fix tests failing with Pydantic 2.7.0 #4

Merged
merged 1 commit into from
May 7, 2024

Conversation

xshapira
Copy link
Contributor

@xshapira xshapira commented May 7, 2024

Fixes #3

We tried to validate the enum values (preferred_food and preferred_group) before creating an instance of the Preference model in the database. This was causing validation errors because the test was passing invalid enum values directly to the PreferenceSchema.

@jonathan-s
Copy link
Owner

Thank you. Ran some checks on my computer as well, and seems to be all good.

@jonathan-s jonathan-s merged commit efa145c into jonathan-s:main May 7, 2024
5 checks passed
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.

Pydantic 2.7.0 breaks tests
2 participants