Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
0a359c1c by Mark Sapiro at 2021-05-07T18:35:54-07:00
Sort some results in tests to avoid failure due to order.
- - - - -
44bf9a63 by Mark Sapiro at 2021-05-08T03:07:28+00:00
Merge branch 'sort' into 'master'
Sort some results in tests to avoid failure due to order.
See merge request mailman/mailman!855
- - - - -
1 changed file:
- src/mailman/model/tests/test_subscriptions.py
Changes:
=====================================
src/mailman/model/tests/test_subscriptions.py
=====================================
@@ -354,8 +354,10 @@ class TestSubscriptionService(unittest.TestCase):
# Now obtain various rosters and ensure that they have the
# memberships we expect, after the mass unsubscribe.
ant_members = ant.get_roster(MemberRole.member)
+ ant_addresses = [address.email for address in ant_members.addresses]
+ ant_addresses.sort()
self.assertEqual(
- [address.email for address in ant_members.addresses],
+ ant_addresses,
['[email protected]',
'[email protected]',
])
@@ -377,16 +379,20 @@ class TestSubscriptionService(unittest.TestCase):
'[email protected]',
])
ant_moderators = ant.get_roster(MemberRole.moderator)
+ ant_addresses = [address.email for address in ant_moderators.addresses]
+ ant_addresses.sort()
self.assertEqual(
- [address.email for address in ant_moderators.addresses],
+ ant_addresses,
['[email protected]',
'[email protected]',
'[email protected]',
])
bee_moderators = bee.get_roster(MemberRole.moderator)
# As above, anne_0 shows up the moderators twice.
+ bee_addresses = [address.email for address in bee_moderators.addresses]
+ bee_addresses.sort()
self.assertEqual(
- [address.email for address in bee_moderators.addresses],
+ bee_addresses,
['[email protected]',
'[email protected]',
'[email protected]',
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/538e3756f935c70be8f15aad827314741f15fd49...44bf9a638f1c7af0d349d4af4601a129e2423789
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/538e3756f935c70be8f15aad827314741f15fd49...44bf9a638f1c7af0d349d4af4601a129e2423789
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: [email protected]