Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjinfei committed Feb 10, 2017
1 parent 870aff9 commit dc94a5e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ckan/tests/logic/action/test_get.py
Expand Up @@ -858,10 +858,7 @@ def test_search_fl(self):

search_result = helpers.call_action('package_search', q='rivers', fl=['title', 'name'])

eq(search_result['results'][0]['title'], 'Rivers')
eq(search_result['results'][0]['name'], 'test_ri')
eq(len(search_result['results'][0]), 2)
eq(search_result['count'], 1)
eq(search_result['results'], [{'title': 'Rivers', 'name': 'test_ri'}])

def test_search_all(self):
factories.Dataset(title='Rivers')
Expand Down

0 comments on commit dc94a5e

Please sign in to comment.