Skip to content

Commit

Permalink
Fix for _sort_desc=sortable_with_nulls test, refs #216
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 17, 2018
1 parent 2abe539 commit 07fc2d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ def test_paginate_compound_keys_with_extra_filters(app_client):
'_sort_desc=sortable_with_nulls',
lambda row: (
1 if row['sortable_with_nulls'] is None else 0,
-row['sortable_with_nulls'] if row['sortable_with_nulls'] is not None else 0
-row['sortable_with_nulls'] if row['sortable_with_nulls'] is not None else 0,
row['content']
),
'sorted by sortable_with_nulls descending'
),
Expand Down

0 comments on commit 07fc2d1

Please sign in to comment.