Skip to content

Commit 285c7f8

Browse files
committed
tests: don't care about ordering in APITests.test_project_features
Fixes this specific test against postgresql
1 parent fbc52d5 commit 285c7f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/rtd_tests/tests/test_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from django.contrib.auth.models import User
1313
from django.core.urlresolvers import reverse
1414
from django.test import TestCase
15+
from django.utils import six
1516
from django_dynamic_fixture import get
1617
from rest_framework import status
1718
from rest_framework.test import APIClient
@@ -247,7 +248,8 @@ def test_project_features(self):
247248
resp = client.get('/api/v2/project/%s/' % (project.pk))
248249
self.assertEqual(resp.status_code, 200)
249250
self.assertIn('features', resp.data)
250-
self.assertEqual(
251+
six.assertCountEqual(
252+
self,
251253
resp.data['features'],
252254
[feature1.feature_id, feature2.feature_id],
253255
)

0 commit comments

Comments
 (0)