Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 committed May 8, 2024
1 parent ea3dff8 commit 53e13ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions enterprise/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ def send_sso_configured_email(


def _recipients_for_identified_users(
user_id_by_email,
maximum_aliases_per_batch = MAX_NUM_IDENTIFY_USERS_ALIASES,
alias_label = ENTERPRISE_BRAZE_ALIAS_LABEL
):
user_id_by_email,
maximum_aliases_per_batch = MAX_NUM_IDENTIFY_USERS_ALIASES,
alias_label = ENTERPRISE_BRAZE_ALIAS_LABEL
):
"""
Helper function for create_recipients that takes a dictionary of user_email keys and
user_id values, batches them in groups of the maximum number of users alias based
Expand Down
4 changes: 2 additions & 2 deletions test_utils/fake_user_id_by_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def generate_emails_and_ids(num_emails):
Generates random emails with random uuids used primarily to test length constraints
"""
emails_and_ids = {
''.join(random.choices(string.ascii_uppercase +
string.digits, k=8)) + '@gmail.com': math.floor(random.random() * 1000)
''.join(random.choices(string.ascii_uppercase + string.digits, k=8)) +
'@gmail.com': math.floor(random.random() * 1000)
for _ in range(num_emails)
}
return emails_and_ids
3 changes: 1 addition & 2 deletions tests/test_enterprise/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,5 +686,4 @@ def test_batch_dict_multiple_batches_no_remainder(self, items_per_batch, generat
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 53e13ec

Please sign in to comment.