Skip to content

Commit

Permalink
fixed inbox once again
Browse files Browse the repository at this point in the history
  • Loading branch information
leolivier committed May 4, 2024
1 parent 5f3ad2d commit 8bfb459
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_maildropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def getenv():

@pytest.fixture(scope="class")
def inbox(getenv):
rand_id = ''.join(random.choice(string.printable) for _ in range(8))
allowed_chars = string.ascii_lowercase + string.digits
rand_id = ''.join(random.choice(allowed_chars) for _ in range(8))
inbox_prefix = getenv['MAILDROP_INBOX_PREFIX']
return f'{inbox_prefix}-{rand_id}'

Expand Down Expand Up @@ -112,7 +113,7 @@ def send_mails(params, getenv, inbox, maildrop_reader):

sent_mails = []
for _ in range(params.nb_msgs_to_test_with):
sent_mails.append(send_test_mail(params, getenv))
sent_mails.append(send_test_mail(params, getenv, inbox))
time.sleep(1) # rate limiting?

time_to_wait = params.receive_timeout
Expand Down

0 comments on commit 8bfb459

Please sign in to comment.