From 07fc2d113e462bfd8d7d56152c0d1fc55e0fdbe9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 16 Apr 2018 17:05:03 -0700 Subject: [PATCH] Fix for _sort_desc=sortable_with_nulls test, refs #216 --- tests/test_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index f9e6bfc443..7d9548b091 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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' ),