Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
5fe3eccb by Abhilash Raj at 2021-04-17T17:23:38-07:00
Sort the results to make sure the test is deterministic.
- - - - -
152a96ec by Mark Sapiro at 2021-04-18T00:58:26+00:00
Merge branch 'fix-ci' into 'master'
Sort the results to make sure the test is deterministic.
See merge request mailman/mailman!835
- - - - -
1 changed file:
- src/mailman/rest/tests/test_users.py
Changes:
=====================================
src/mailman/rest/tests/test_users.py
=====================================
@@ -316,7 +316,7 @@ class TestUsers(unittest.TestCase):
self.assertEqual(len(json.get('entries')), 2)
# both matched since one has person in name and other has in email.
user_ids = [each.get('user_id') for each in json.get('entries')]
- self.assertEqual(user_ids, [(user.id), user2.id])
+ self.assertEqual(sorted(user_ids), [(user.id), user2.id])
class TestLogin(unittest.TestCase):
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/802559df80043f639c155aa8b1ba7337fd81baba...152a96ec264226b050cf0d015742d03cff7f9219
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/802559df80043f639c155aa8b1ba7337fd81baba...152a96ec264226b050cf0d015742d03cff7f9219
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]