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

custom_profile_field changes and testing #29862

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LearningCChang
Copy link
Collaborator

Custom_profile_field changes: check whether name and hint inputs are valid; they will be updated if the name and hint fields are not empty, otherwise, they will remain the same.

Test functions:

  1. Test adding a field with valid name and hint. (Ensures that the function correctly handles valid inputs and that the notification function is triggered)
  2. Test adding a field with an empty name. (Verifies that the function can handle an empty string for the name parameter and that the field is created with an empty name)
  3. Test the behavior when both name and hint are None. (Checks if the function defaults to an empty string for name and None for hint correctly)
  4. Test the addition of a field with required=None (This tests the required parameter defaults to False if None is passed)
  5. Test adding a field with display_in_profile_summary=False (Verifies that the field is created correctly without displaying in the profile summary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants