diff --git a/pythonpro/cohorts/tests/conftest.py b/pythonpro/cohorts/tests/conftest.py index d9c76f1c..c3054d16 100644 --- a/pythonpro/cohorts/tests/conftest.py +++ b/pythonpro/cohorts/tests/conftest.py @@ -8,13 +8,13 @@ from pythonpro import settings from pythonpro.cohorts.models import Cohort, Webinar -img_path = path.join(settings.BASE_DIR, 'pythonpro', 'core', 'static', 'img', 'instructors', 'renzo-nuccitelli.png') +img_path = path.join(settings.BASE_DIR, 'pythonpro', 'core', 'static', 'img', 'instructors', 'renzo-nuccitelli.jpeg') @pytest.fixture def cohort(client, django_user_model): user = mommy.make(django_user_model) - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') cohort = mommy.make(Cohort, slug='guido-van-rossum', title='Guido van Rossum', students=[user], image=image) return cohort @@ -23,7 +23,7 @@ def cohort(client, django_user_model): @pytest.fixture def webinars(cohort): now = datetime.utcnow() - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') return [ mommy.make(Webinar, cohort=cohort, vimeo_id=str(i), image=image, start=now + timedelta(days=i)) for i in diff --git a/pythonpro/cohorts/tests/test_cohorts.py b/pythonpro/cohorts/tests/test_cohorts.py index 45749a67..89f3b01e 100644 --- a/pythonpro/cohorts/tests/test_cohorts.py +++ b/pythonpro/cohorts/tests/test_cohorts.py @@ -20,7 +20,7 @@ def resp(client_with_member, cohort): @pytest.fixture def resp_without_user(client, db): - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') cohort = mommy.make(Cohort, slug='guido-van-rossum', image=image) resp = client.get(reverse('cohorts:detail', kwargs={'slug': cohort.slug}), secure=True) @@ -35,7 +35,7 @@ def test_no_access(resp_without_user): def test_cohort_links_for_logged_user(client, django_user_model): user = mommy.make(django_user_model) client.force_login(user) - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') cohorts = mommy.make(Cohort, 4, image=image) resp = client.get('/', secure=True) @@ -45,7 +45,7 @@ def test_cohort_links_for_logged_user(client, django_user_model): @pytest.mark.django_db def test_cohort_links_not_avaliable_for_no_user(client): - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') cohorts = mommy.make(Cohort, 4, image=image) resp = client.get('/', secure=True) diff --git a/pythonpro/cohorts/tests/test_webinar_detail.py b/pythonpro/cohorts/tests/test_webinar_detail.py index 170fdf31..4d80360a 100644 --- a/pythonpro/cohorts/tests/test_webinar_detail.py +++ b/pythonpro/cohorts/tests/test_webinar_detail.py @@ -10,7 +10,7 @@ @pytest.fixture def webinar(cohort) -> Webinar: - image = SimpleUploadedFile(name='renzo-nuccitelli.png', content=open(img_path, 'rb').read(), + image = SimpleUploadedFile(name='renzo-nuccitelli.jpeg', content=open(img_path, 'rb').read(), content_type='image/png') return mommy.make(Webinar, cohort=cohort, image=image) diff --git a/pythonpro/core/static/img/instructors/renzo-nuccitelli-300.jpeg b/pythonpro/core/static/img/instructors/renzo-nuccitelli-300.jpeg new file mode 100644 index 00000000..4f18d6bc Binary files /dev/null and b/pythonpro/core/static/img/instructors/renzo-nuccitelli-300.jpeg differ diff --git a/pythonpro/core/static/img/instructors/renzo-nuccitelli.jpeg b/pythonpro/core/static/img/instructors/renzo-nuccitelli.jpeg new file mode 100644 index 00000000..d408a26e Binary files /dev/null and b/pythonpro/core/static/img/instructors/renzo-nuccitelli.jpeg differ diff --git a/pythonpro/core/static/img/instructors/renzo-nuccitelli.png b/pythonpro/core/static/img/instructors/renzo-nuccitelli.png deleted file mode 100644 index 4c368ec2..00000000 Binary files a/pythonpro/core/static/img/instructors/renzo-nuccitelli.png and /dev/null differ diff --git a/pythonpro/core/static/img/profile.jpeg b/pythonpro/core/static/img/profile.jpeg deleted file mode 100644 index e51cc67e..00000000 Binary files a/pythonpro/core/static/img/profile.jpeg and /dev/null differ diff --git a/pythonpro/core/templates/core/instructors.html b/pythonpro/core/templates/core/instructors.html index f865c051..7e5db0bf 100644 --- a/pythonpro/core/templates/core/instructors.html +++ b/pythonpro/core/templates/core/instructors.html @@ -48,7 +48,7 @@
Luciano Ramalho
Renzo Nuccitelli

Instrutor Renzo NuccitelliEngenheiro de Computação formado pelo ITA. Especialista em programação web. Hoje é Diretor de Tecnologia na Pricez. diff --git a/pythonpro/payments/templates/payments/client_landing_page.html b/pythonpro/payments/templates/payments/client_landing_page.html index 75280171..087cf09e 100644 --- a/pythonpro/payments/templates/payments/client_landing_page.html +++ b/pythonpro/payments/templates/payments/client_landing_page.html @@ -130,11 +130,11 @@

Chegou a hora de ir além do básico!Olá! Eu me chamo Renzo Nuccitelli,

- + Foto de Renzo Nuccitelli
- + Foto de Renzo Nuccitelli

Sou programador há 13 anos. Já fui diretor de tecnologia em duas empresas