adapted test case and added DRF as pip requirement for tests

This commit is contained in:
Philippe Luickx 2017-03-23 13:54:22 +02:00
parent 9f62933af1
commit c18771aa85
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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(