-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
User endpoint tests #888
base: develop
Are you sure you want to change the base?
User endpoint tests #888
Conversation
@JaDogg this is a draft PR. Should I refactor the rest of the tests in the same way? Your inputs are highly welcome. |
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Origin': 'http://localhost:3000', | ||
} | ||
user_data = { |
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.
Will we need to load these passwords/user_names
from a config?
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.
Right now these are just present in this file itself in future I will create a config to store this data.
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.
OK. 😀
import logging as logger | ||
from flask import g |
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.
Are these imports used? If not let's remove these.
Description
Added tests for User endpoints and fixed bug in UserManager.py to allow user to be deleted through the endpoint.
Related Issue #851
Motivation and Context
Tests should be present to allow the project maintainers to know that the endpoints arae working correctly.
How Has This Been Tested?
Screenshots (In case of UI changes):
Types of changes
Checklist: