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

Validate father in same case as child #3492

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

seallard
Copy link
Contributor

No description provided.

@seallard seallard requested a review from a team as a code owner July 30, 2024 14:45
Copy link
Contributor

@islean islean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Sometime soon it might be nice to start writing tests that check multiple validations? I think your tests should have covered for the case when a father is missing - If so, we do not want has failed the sex check as well but we want this PR's validation to give errors.

Not the best example since I think your unit tests are sufficient for it, but something to consider.

cg/services/order_validation_service/models/errors.py Outdated Show resolved Hide resolved
@seallard
Copy link
Contributor Author

Looks good to me! Sometime soon it might be nice to start writing tests that check multiple validations? I think your tests should have covered for the case when a father is missing - If so, we do not want has failed the sex check as well but we want this PR's validation to give errors.

Not the best example since I think your unit tests are sufficient for it, but something to consider.

Good point! I'll add unit tests for this rule as well. Maybe we can hold off on integration tests until we have the entire tomte flow in place.

@seallard seallard merged commit e72c8c3 into improve-order-flow-main Jul 30, 2024
5 checks passed
@seallard seallard deleted the validate-dad-in-same-case branch July 30, 2024 16:24
Copy link

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.

2 participants