-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(signup-validations): Implement validations #10
Conversation
Pull Request Test Coverage Report for Build 267
💛 - Coveralls |
Travis is failing. |
def test_api_can_login_a_user(self): | ||
"""Test the api can login a user.""" | ||
self.response = self.client.post( | ||
"/api/users/login/", | ||
self.login_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.
Why was this line deleted?
@@ -19,15 +19,15 @@ def setUp(self): | |||
self.user_data, | |||
format="json") | |||
|
|||
def test_api_can_register_a_user(self): |
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.
There was no need of deleting and rewriting the same test. The deleted test was reusing data in the base test file instead of rewriting similar data in the test.
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.
i have solved this @collinewait
authors/settings/base.py
Outdated
@@ -20,7 +20,7 @@ | |||
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ | |||
|
|||
# SECURITY WARNING: keep the secret key used in production secret! | |||
SECRET_KEY = os.environ.get("SECRET_KEY", None) | |||
SECRET_KEY = os.environ.get("HOME", None) |
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.
What is the reason behind replacing "SECRET_KEY" with "HOME"?
I'm seeing 11 commits in your PR. could you please squash them together |
@reiosantos , am on it |
70b7b98
to
37c7eb8
Compare
a3e9edd
to
f47cf24
Compare
9111e3f
to
61e6d2c
Compare
e1b6af1
to
20e6e89
Compare
20e6e89
to
f3e615c
Compare
f3e615c
to
ffaf79f
Compare
6c16699
to
be9fe1d
Compare
- Implementing all sign up validations tests and functionalities. [Finishes #159952001]
be9fe1d
to
c4f58e2
Compare
|
||
self.no_password_login = { | ||
"user": {"email": self.user_email, | ||
"password": None, |
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.
Do we really need to pass none here?
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.
I was still figuring out the way to get the validation error,
What does this PR do?
Implements signup validation.
Description of Task to be completed?
Validating username, email, and password when the user is registering to the application.
How should this be manually tested?
What are the relevant pivotal tracker stories?
159952001