Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 3caba41

Browse files
committed
Add final period to expected error strings
1 parent cf5b5ed commit 3caba41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_post_form_passing_jwt_invalid_payload(self):
220220
response = self.csrf_client.post(
221221
'/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
222222

223-
msg = 'Invalid payload'
223+
msg = 'Invalid payload.'
224224

225225
self.assertEqual(response.data['detail'], msg)
226226
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)

tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def test_refresh_jwt_after_refresh_expiration(self):
265265
format='json')
266266
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
267267
self.assertEqual(response.data['non_field_errors'][0],
268-
'Refresh has expired')
268+
'Refresh has expired.')
269269

270270
def tearDown(self):
271271
# Restore original settings

0 commit comments

Comments
 (0)