File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3761,6 +3761,8 @@ def test_egg_upload_sends_pep_715_notice_org_roles(
3761
3761
)
3762
3762
team = TeamFactory .create (organization = org )
3763
3763
TeamRoleFactory .create (team = team , user = org_member )
3764
+ # Duplicate the role directly on the project to ensure only one email
3765
+ RoleFactory .create (user = org_member , project = project , role_name = "Maintainer" )
3764
3766
TeamProjectRoleFactory .create (project = project , team = team )
3765
3767
3766
3768
pyramid_config .testing_securitypolicy (identity = user )
Original file line number Diff line number Diff line change @@ -1483,7 +1483,7 @@ def file_upload(request):
1483
1483
for teamrole in project .team_project_roles :
1484
1484
contributors += teamrole .team .members
1485
1485
1486
- for contributor in sorted (contributors ):
1486
+ for contributor in sorted (set ( contributors ) ):
1487
1487
send_egg_uploads_deprecated_email (
1488
1488
request ,
1489
1489
contributor ,
Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ def send_pep_715_notices(request):
530
530
for teamrole in project .team_project_roles :
531
531
contributors += teamrole .team .members
532
532
533
- for contributor in sorted (contributors ):
533
+ for contributor in sorted (set ( contributors ) ):
534
534
send_egg_uploads_deprecated_initial_email (
535
535
request ,
536
536
contributor ,
You can’t perform that action at this time.
0 commit comments