Skip to content

Commit

Permalink
Fix #11862 (#11897)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Jul 20, 2022
1 parent 4123188 commit bbcb07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/email/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def test_basic_auth_with_2fa_email(
pyramid_request, stub_user, project_name=project_name
)

assert result == {}
assert result == {"project_name": project_name}
assert pyramid_request.task.calls == [pretend.call(send_email)]
assert send_email.delay.calls == [
pretend.call(
Expand Down
2 changes: 1 addition & 1 deletion warehouse/email/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def send_token_compromised_email_leak(request, user, *, public_url, origin):
repeat_window=datetime.timedelta(days=1),
)
def send_basic_auth_with_two_factor_email(request, user, *, project_name):
return {}
return {"project_name": project_name}


@_email("account-deleted")
Expand Down

0 comments on commit bbcb07e

Please sign in to comment.