Skip to content

Commit

Permalink
[#714] Fix some solr package search tests
Browse files Browse the repository at this point in the history
CKAN used to convert 'sort': 'rank' into 'sort': 'score desc, namae asc'
but since commit ca04063 ([#714] Fix
default sort ordering) it no longer does this, which breaks these tests.
Update the tests to pass 'score desc, name asc' directly instead.
  • Loading branch information
Sean Hammond committed Apr 8, 2013
1 parent c0484f8 commit 2879cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/lib/test_solr_package_search.py
Expand Up @@ -363,7 +363,7 @@ def teardown_class(self):
def _do_search(self, q, expected_pkgs, count=None):
query = {
'q': q,
'sort': 'rank'
'sort': 'score desc, name asc'
}
result = search.query_for(model.Package).run(query)
pkgs = result['results']
Expand Down Expand Up @@ -472,7 +472,7 @@ def teardown_class(self):
def _do_search(self, q, wanted_results):
query = {
'q': q,
'sort': 'rank'
'sort': 'score desc, name asc',
}
result = search.query_for(model.Package).run(query)
results = result['results']
Expand Down

0 comments on commit 2879cf9

Please sign in to comment.