mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-04-22 01:32:08 +03:00
adapted test case and added DRF as pip requirement for tests
This commit is contained in:
parent
9f62933af1
commit
c18771aa85
|
@ -2,3 +2,4 @@ django-allauth>=0.25.0
|
|||
responses>=0.3.0
|
||||
flake8==2.4.0
|
||||
djangorestframework-jwt>=1.7.2
|
||||
djangorestframework>=3.6.2
|
|
@ -275,8 +275,12 @@ class TestSocialAuth(TestCase, BaseAPITestCase):
|
|||
'access_token': 'abc123'
|
||||
}
|
||||
|
||||
self.post(self.fb_login_url, data=payload, status_code=200)
|
||||
self.assertIn('key', self.response.json.keys())
|
||||
# You should not have access to an account created through register
|
||||
# by loging in through FB with an account that has the same
|
||||
# email address.
|
||||
self.post(self.fb_login_url, data=payload, status_code=400)
|
||||
# self.post(self.fb_login_url, data=payload, status_code=200)
|
||||
# self.assertIn('key', self.response.json.keys())
|
||||
|
||||
@responses.activate
|
||||
@override_settings(
|
||||
|
|
Loading…
Reference in New Issue
Block a user