summaryrefslogtreecommitdiffstats
path: root/tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_views.py')
-rw-r--r--tests/test_views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_views.py b/tests/test_views.py
index 8162a54..9023f5a 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -138,7 +138,7 @@ def test_forwardfile_view(atreal_openads, collectivite_1, forwardfile_1, request
queryset = view.get_queryset()
assert queryset.query is not None
- assert queryset.query.order_by == ['id']
+ assert list(queryset.query.order_by) == ['id']
assert queryset.query.default_ordering
assert queryset.query.get_meta().ordering == ['-last_update_datetime']
assert queryset.ordered
@@ -146,7 +146,7 @@ def test_forwardfile_view(atreal_openads, collectivite_1, forwardfile_1, request
request_1.GET['order-by'] = '-id'
queryset = view.get_queryset()
assert queryset.query is not None
- assert queryset.query.order_by == ['-id']
+ assert list(queryset.query.order_by) == ['-id']
assert queryset.query.default_ordering
request_1.path = '/manage/atreal-openads/%s/forward-files' % atreal_openads.slug
@@ -162,7 +162,7 @@ def test_forwardfile_view(atreal_openads, collectivite_1, forwardfile_1, request
queryset = view.get_queryset()
assert queryset.query is not None
- assert queryset.query.order_by == ['id']
+ assert list(queryset.query.order_by) == ['id']
assert queryset.query.default_ordering
assert queryset.query.get_meta().ordering == ['-last_update_datetime']
assert queryset.ordered
@@ -245,7 +245,7 @@ def test_collectivite_view(atreal_openads, collectivite_1, forwardfile_1, reques
queryset = view.get_queryset()
assert queryset.query is not None
- assert queryset.query.order_by == ['id']
+ assert list(queryset.query.order_by) == ['id']
assert queryset.query.default_ordering
assert queryset.query.get_meta().ordering == ['name']
assert queryset.ordered
@@ -253,7 +253,7 @@ def test_collectivite_view(atreal_openads, collectivite_1, forwardfile_1, reques
request_1.GET['order-by'] = '-id'
queryset = view.get_queryset()
assert queryset.query is not None
- assert queryset.query.order_by == ['-id']
+ assert list(queryset.query.order_by) == ['-id']
assert queryset.query.default_ordering