Added authentication using email test case#180
Conversation
| self.assertEqual(response.status_code, 200) | ||
|
|
||
| class EmailLoginBackendTests(TestCase): | ||
|
|
| response = self.client.get(reverse("account_reset_password")) | ||
| self.assertEqual(response.status_code, 200) | ||
|
|
||
| class EmailLoginBackendTests(TestCase): |
| self.assertEqual(response.status_code, 302) | ||
|
|
||
| class PasswordResetViewTest(TestCase): | ||
|
|
| response = self.client.get(reverse("account_change_password")) | ||
| self.assertEqual(response.status_code, 302) | ||
|
|
||
| class PasswordResetViewTest(TestCase): |
| response = self.client.get(reverse("account_signup")) | ||
| self.assertEqual(response.status_code, 200) | ||
|
|
||
| class PasswordChangeViewTest(TestCase): |
| self.assertEqual(response.status_code, 200) | ||
|
|
||
| class RegisterViewTest(TestCase): | ||
|
|
| response = self.client.get(reverse("account_login")) | ||
| self.assertEqual(response.status_code, 200) | ||
|
|
||
| class RegisterViewTest(TestCase): |
| from __future__ import unicode_literals | ||
|
|
||
| from django.contrib.auth.models import User | ||
| from django.test import SimpleTestCase, TestCase |
There was a problem hiding this comment.
'django.test.SimpleTestCase' imported but unused
9449f5f to
0b90bf2
Compare
|
@tapasweni-pathak How could i include |
de90d18 to
2646934
Compare
|
|
||
| script: | ||
| - coverage run --source='main' manage.py test --verbosity 2 | ||
| - coverage run --source=main,authentication manage.py test --verbosity 2 |
There was a problem hiding this comment.
What happens if you say coverage run oshc/manage.py test?
There was a problem hiding this comment.
Then our coverage decreased to 42% because Travis makes virtual environment and test.py only covers some file
|
@tapasweni-pathak please review and merge |
There was a problem hiding this comment.
We won't be going ahead with writing the app names specifically.
coverage run --source='.' manage.py test runs good on all apps but also on where we don't want it to.
Will merge this with a .coveragerc and including the excludes of not important files/directories; in process here.
|
@tapasweni-pathak So i will push |
|
@tapasweni-pathak Coverage reduced as it's checking the whole code |
|
@vaibhavsingh97 Ping! Are you still working on this? |
Checklist
developbranch.Which issue does this PR fix?: fixes #179