-
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 speaker custom form logic and validation #7107
Conversation
@@ -32,14 +34,15 @@ def before_post(self, args, kwargs, data=None): | |||
:param data: | |||
:return: | |||
""" | |||
data['user'] = current_user.id |
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.
city=None, | ||
heard_from=None, | ||
user=user, | ||
event__state='published', |
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.
Codecov Report
@@ Coverage Diff @@
## development #7107 +/- ##
===============================================
+ Coverage 62.00% 62.51% +0.50%
===============================================
Files 262 262
Lines 13000 13006 +6
===============================================
+ Hits 8061 8131 +70
+ Misses 4939 4875 -64
Continue to review full report at Codecov.
|
Issues
======
- Added 1
Complexity increasing per file
==============================
- tests/all/integration/api/speaker/test_speaker_api.py 8
Clones added
============
- tests/all/integration/api/speaker/test_speaker_api.py 25
See the complete overview on Codacy |
assert speaker.complex_field_values is None | ||
|
||
|
||
def test_custom_form_create_complex_fields_missing_required(db, client, user, 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.
Fixes #7074