Skip to content

Commit

Permalink
Fix test_order_by_success_case to accomodate scylla
Browse files Browse the repository at this point in the history
Scylla does not support statement with opposite ordering direction for
the same collumn:
SELECT * FROM table ORDER BY a ASC, a DESC;
  • Loading branch information
dkropachev committed Dec 23, 2024
1 parent 05cbf94 commit 6c83b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/cqlengine/query/test_queryset.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def test_order_by_success_case(self):
for model, expect in zip(q, expected_order):
assert model.attempt_id == expect

q = q.order_by('-attempt_id')
q = q.order_by().order_by('-attempt_id')
expected_order.reverse()
for model, expect in zip(q, expected_order):
assert model.attempt_id == expect
Expand Down

0 comments on commit 6c83b8f

Please sign in to comment.