Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
add randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Jan 9, 2022
1 parent b8dc4a3 commit 384f31f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mailerlite/tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def test_groups_subscriber(header):

n_groups = groups.all()
assert len(n_groups) > 0
group_1 = n_groups[0]

group_ix = random.randint(0, n_groups)
group_1 = n_groups[group_ix]

subs_in_group_1 = groups.subscribers(group_1.id)
assert len(subs_in_group_1) > 0
Expand All @@ -102,7 +104,7 @@ def test_groups_subscriber(header):
else:
break

print(new_subs)
# print(new_subs)
if new_subs:
assert new_subs[0].email == mail

Expand Down Expand Up @@ -146,7 +148,7 @@ def test_groups_single_subscriber(header):
else:
break

print(new_sub)
# print(new_sub)
if new_sub:
assert new_sub.email == mail

Expand Down

0 comments on commit 384f31f

Please sign in to comment.