anitab-org / anitab-org/mentorship-backend
Updating an user with empty username and name should give an error message
- Langage dominant
- Python
- Étoiles
- 200
- Forks
- 449
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
When updating an user with empty username and name should give an error message.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'User-update user profile'.
2. Provide authorization access token.
3. {
"name": "",
"username": "",
"bio": "string",
"location": "string",
"occupation": "string",
"organization": "string",
"slack_username": "string",
"social_media_links": "string",
"skills": "string",
"interests": "string",
"resume_url": "string",
"photo_url": "string",
"need_mentoring": true,
"available_to_mentor": true
}
4. Click on 'Execute'.
5. Scroll down to 'Responses'.
6.

7. current user's detail after update in" Return details of current user".

**Expected behavior**
If the username and name are not expected to be updated to empty string and error should be shown.
**Desktop (please complete the following information):**
- OS: Windows 10
- Browser chrome
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.