mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
Adapt test for #49 again
This commit is contained in:
@@ -358,7 +358,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
|||||||
# Probably not the best way to access the content type
|
# Probably not the best way to access the content type
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response['Content-Type'],
|
response['Content-Type'],
|
||||||
'image/jpeg',
|
'image/jpg',
|
||||||
'Content type wrong!?')
|
'Content type wrong!?')
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@@ -640,7 +640,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
|||||||
'Successfully uploaded',
|
'Successfully uploaded',
|
||||||
'JPEG upload failed?!')
|
'JPEG upload failed?!')
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.user.photo_set.first().format, 'jpeg',
|
self.user.photo_set.first().format, 'jpg',
|
||||||
'Format must be jpeg, since we uploaded a jpeg!')
|
'Format must be jpeg, since we uploaded a jpeg!')
|
||||||
self.test_confirm_email()
|
self.test_confirm_email()
|
||||||
self.user.confirmedemail_set.first().photo = self.user.photo_set.first()
|
self.user.confirmedemail_set.first().photo = self.user.photo_set.first()
|
||||||
|
|||||||
Reference in New Issue
Block a user