Commit ff2d259e authored by André Anjos's avatar André Anjos 💬

[team] Fix test comparison

parent 17df9a9d
Pipeline #1547 failed with stage
......@@ -221,10 +221,10 @@ class TeamAddMemberTestCase(TeamTestCase):
'short_description': u'',
'is_owner': True,
'accessibility': 'public',
'members': [
self.jackdoe.username,
'members': set([
self.johndoe.username,
]
self.jackdoe.username,
])
}
self.client.login(username=self.johndoe.username, password=self.password)
......@@ -233,7 +233,9 @@ class TeamAddMemberTestCase(TeamTestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
response = self.client.get(self.url, format='json')
self.assertEqual(json.loads(response.content), expected_answer)
r = json.loads(response.content)
r['members'] = set(r['members']) #fix order
self.assertEqual(r, expected_answer)
def test_logged_in_user_not_owner(self):
self.client.login(username=self.jackdoe, password=self.password)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment