-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: Add complex custom form validations #7073
Conversation
|
||
if len(missing_required_fields) > 0: | ||
raise UnprocessableEntityError( | ||
{'pointer': '/data/attributes'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Black would make changes.
Issues
======
- Added 1
Complexity increasing per file
==============================
- app/api/helpers/custom_forms.py 7
Complexity decreasing per file
==============================
+ tests/all/integration/api/attendee/test_attendee_api.py -5
Clones added
============
- tests/all/integration/api/attendee/test_attendee_api.py 9
See the complete overview on Codacy |
assert attendee.complex_field_values is None | ||
|
||
|
||
def test_custom_form_complex_fields_missing_required_one(db, client, jwt): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## development #7073 +/- ##
===============================================
+ Coverage 61.81% 61.86% +0.04%
===============================================
Files 260 261 +1
Lines 12929 12940 +11
===============================================
+ Hits 7992 8005 +13
+ Misses 4937 4935 -2
Continue to review full report at Codecov.
|
Fix for #7074