anitab-org / anitab-org/mentorship-backend

Updating an user with empty username and name should give an error message

Ouverte
#598 22 commentaires 0 réactions 1 personne assignée Réclamée par @mariejp Voir sur GitHub
Category: Coding First Timers Only
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.
![Screenshot (75)](https://user-images.githubusercontent.com/50888936/82158643-c5475180-98a6-11ea-9210-15c2efd79dfb.png)
7. current user's detail after update in" Return details of current user".
![Screenshot (76)](https://user-images.githubusercontent.com/50888936/82158894-61be2380-98a8-11ea-8aef-cd5893de7aa8.png)

**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.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.