@@ -20,7 +20,7 @@ def resp(client_with_member, cohort):
2020
2121@pytest .fixture
2222def resp_without_user (client , db ):
23- image = SimpleUploadedFile (name = 'renzo-nuccitelli.png ' , content = open (img_path , 'rb' ).read (),
23+ image = SimpleUploadedFile (name = 'renzo-nuccitelli.jpeg ' , content = open (img_path , 'rb' ).read (),
2424 content_type = 'image/png' )
2525 cohort = mommy .make (Cohort , slug = 'guido-van-rossum' , image = image )
2626 resp = client .get (reverse ('cohorts:detail' , kwargs = {'slug' : cohort .slug }), secure = True )
@@ -35,7 +35,7 @@ def test_no_access(resp_without_user):
3535def test_cohort_links_for_logged_user (client , django_user_model ):
3636 user = mommy .make (django_user_model )
3737 client .force_login (user )
38- image = SimpleUploadedFile (name = 'renzo-nuccitelli.png ' , content = open (img_path , 'rb' ).read (),
38+ image = SimpleUploadedFile (name = 'renzo-nuccitelli.jpeg ' , content = open (img_path , 'rb' ).read (),
3939 content_type = 'image/png' )
4040 cohorts = mommy .make (Cohort , 4 , image = image )
4141 resp = client .get ('/' , secure = True )
@@ -45,7 +45,7 @@ def test_cohort_links_for_logged_user(client, django_user_model):
4545
4646@pytest .mark .django_db
4747def test_cohort_links_not_avaliable_for_no_user (client ):
48- image = SimpleUploadedFile (name = 'renzo-nuccitelli.png ' , content = open (img_path , 'rb' ).read (),
48+ image = SimpleUploadedFile (name = 'renzo-nuccitelli.jpeg ' , content = open (img_path , 'rb' ).read (),
4949 content_type = 'image/png' )
5050 cohorts = mommy .make (Cohort , 4 , image = image )
5151 resp = client .get ('/' , secure = True )
0 commit comments