anitab-org / anitab-org/mentorship-backend

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

Đang mở
#598 22 bình luận 0 reaction 1 người được giao Được @mariejp nhận Xem trên GitHub
Category: Coding First Timers Only
Ngôn ngữ chính
Python
Star
200
Fork
449
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.