Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 committed May 13, 2024
1 parent 273ddb4 commit 1e1e9db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Unreleased
[4.18.0]
--------
* feat: updates tasks usage of create_recipient to create_recipients
=======

[4.17.8]
--------
* fix: adding missing migration file
Expand Down
8 changes: 0 additions & 8 deletions enterprise/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ def send_group_membership_invitation_notification(
pecu_emails,
ENTERPRISE_BRAZE_ALIAS_LABEL,
)
braze_client_instance.create_braze_alias(
[pecu_emails],
ENTERPRISE_BRAZE_ALIAS_LABEL,
)
recipients.extend(_recipients_for_identified_users(user_id_by_email))
try:
braze_client_instance.send_campaign_message(
Expand Down Expand Up @@ -370,10 +366,6 @@ def send_group_membership_removal_notification(enterprise_customer_uuid, members
pecu_emails,
ENTERPRISE_BRAZE_ALIAS_LABEL,
)
braze_client_instance.create_braze_alias(
[pecu_emails],
ENTERPRISE_BRAZE_ALIAS_LABEL,
)
recipients.extend(_recipients_for_identified_users(user_id_by_email))
try:
braze_client_instance.send_campaign_message(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_enterprise/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,4 +686,4 @@ def test_batch_dict_multiple_batches(self, items_per_batch, generated_emails_cou
assert isinstance(fake_user_id_by_email_chunk, dict)
assert sum(
1 for _ in batch_dict(fake_user_ids_by_emails, items_per_batch)
) == math.ceil(generated_emails_count / items_per_batch )
) == math.ceil(generated_emails_count / items_per_batch)

0 comments on commit 1e1e9db

Please sign in to comment.