Fix for _sort_desc=sortable_with_nulls test, refs #216

debug-travis-issue-216
Simon Willison 2018-04-16 17:05:03 -07:00
rodzic 2abe539a0f
commit 07fc2d113e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 17E2DEA2588B7F52
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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'
),