Skip to content

Commit

Permalink
[#1384] Fix test broken due to sorted change
Browse files Browse the repository at this point in the history
* Fix the test broken because it expects results from sorted.
* Correct the PEP8 change in related controller.
  • Loading branch information
nigelbabu committed Dec 17, 2013
1 parent d621b8b commit 27831b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/controllers/related.py
Expand Up @@ -40,7 +40,7 @@ def dashboard(self):
base.abort(400, ('"page" parameter must be an integer'))

# Update ordering in the context
related_list = logic.get_action('related_list')(context, data_dict)
related_list = logic.get_action('related_list')(context, data_dict)

def search_url(params):
url = h.url_for(controller='related', action='dashboard')
Expand Down
2 changes: 1 addition & 1 deletion ckan/tests/functional/test_related.py
Expand Up @@ -467,7 +467,7 @@ def test_api_list(self):
r = json.loads(res.body)
assert r['success'] == True, r
assert r['result'][0]['type'] == "idea"
assert r['result'][0]['title'] == "two", r
assert r['result'][0]['title'] == "one", r

p.related.remove(one)
p.related.remove(two)
Expand Down

0 comments on commit 27831b3

Please sign in to comment.