File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def email_upper(email):
1616
1717@pytest .fixture
1818def create_or_update_with_no_role (mocker ):
19- return mocker .patch ('pythonpro.launch.views.email_marketing_facade.create_or_update_with_no_role' )
19+ return mocker .patch ('pythonpro.launch.views.email_marketing_facade.create_or_update_with_no_role.delay ' )
2020
2121
2222@pytest .fixture
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ def lead_form(request):
3636 first_name = form .cleaned_data ['name' ]
3737 user = request .user
3838 if user .is_authenticated :
39- email_marketing_facade .create_or_update_with_no_role (
39+ email_marketing_facade .create_or_update_with_no_role . delay (
4040 first_name ,
4141 email ,
4242 f'turma-{ find_most_recent_cohort ().slug } -semana-do-programador' , id = user .id )
4343 else :
44- email_marketing_facade .create_or_update_with_no_role (
44+ email_marketing_facade .create_or_update_with_no_role . delay (
4545 first_name ,
4646 email ,
4747 f'turma-{ find_most_recent_cohort ().slug } -semana-do-programador' )
You can’t perform that action at this time.
0 commit comments