develop #7

Merged
s460930 merged 12 commits from develop into master 2020-12-14 16:36:47 +01:00
5 changed files with 2 additions and 2 deletions
Showing only changes of commit 4689b3bae5 - Show all commits

Binary file not shown.

View File

@ -30,7 +30,7 @@ class UserProfileApiTest(APITestCase):
user = User.objects.create_user(email='test@test.com', password='test')
self.client.force_authenticate(user=user)
response = self.client.get(self.profile_url, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data['success'], 'False')
def test_get_profile(self):

View File

@ -30,7 +30,7 @@ class UserProfileView(RetrieveAPIView):
}
}
except Exception as e:
status_code = status.HTTP_400_BAD_REQUEST
status_code = status.HTTP_404_NOT_FOUND
response = {
'success': 'False',
'status_code': status_code,