Skip to content

Commit eb41765

Browse files
committed
backing python birds thanking you page to normal
1 parent 8d91923 commit eb41765

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

pythonpro/core/tests/test_lead_landing_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def resp_lead_creation_with_no_offer(client, db, fake: Faker, create_lead_mock,
248248
)
249249

250250

251-
# def test_should_redirect_to_thanks_page_direclty(resp_lead_creation_with_no_offer):
252-
# assert resp_lead_creation_with_no_offer['Location'] == reverse('core:thanks')
251+
def test_should_redirect_to_thanks_page_direclty(resp_lead_creation_with_no_offer):
252+
assert resp_lead_creation_with_no_offer['Location'] == reverse('core:thanks')
253253

254254

255255
@pytest.fixture

pythonpro/core/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,7 @@ def _lead_form(request, *args, **kwargs):
184184

185185
login(request, user)
186186

187-
# return redirect(reverse('core:thanks'))
188-
return redirect('https://pythonpro.com.br/jornada-rumo-a-primeira-vaga-inscricao-l8-v4-iscas/'
189-
'?utm_source=iscas&utm_medium=trafego-organico&utm_campaign=L8')
187+
return redirect(reverse('core:thanks'))
190188

191189

192190
def lead_form(request):

0 commit comments

Comments
 (0)