Commit 3ca2d122ab359d9866795833ee2091fccb7ddb20

Authored by Andrew Buss
Exists in master

Merge branch 'master' of git.ucsd.edu:110swag/flashy-backend

Showing 1 changed file Side-by-side Diff

flashcards/tests/test_api.py View file @ 3ca2d12
... ... @@ -35,6 +35,11 @@
35 35 self.assertEqual(response.status_code, HTTP_201_CREATED)
36 36  
37 37  
  38 + data = {'email': 'none@none.com', 'password': '1234'}
  39 + response = self.client.post('/api/login', data, format='json')
  40 + self.assertEqual(response.status_code, HTTP_200_OK)
  41 +
  42 +
38 43 class ProfileViewTest(APITestCase):
39 44 def test_get_me(self):
40 45 url = '/api/users/me'