Changeset - 05e28260b812
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2019-12-26 04:55:00
mads@kiilerich.com
Grafted from: 5dc4e45a6bd6
tests: sort groups in test_enforce_groups check to make it independent of ordering

Py3 would give another ordering.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/models/test_user_groups.py
Show inline comments
 
@@ -56,4 +56,4 @@ class TestUserGroups(TestController):
 

	
 
        user = User.get_by_username(TEST_USER_REGULAR_LOGIN)
 
        in_groups = user.group_member
 
        assert expected == [x.users_group.users_group_name for x in in_groups]
 
        assert sorted(expected) == sorted(x.users_group.users_group_name for x in in_groups)
0 comments (0 inline, 0 general)