Skip to content

Commit

Permalink
[ckan#2981] add empty params to paginated url in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nut committed May 23, 2016
1 parent b1f9c75 commit 4d64ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/legacy/functional/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ def teardown_class(self):

def test_group_index(self):
res = self.app.get(url_for(controller='group', action='index'))
assert 'href="/group?page=2"' in res, res
assert 'href="/group?sort=&q=&page=2"' in res, res
grp_numbers = scrape_search_results(res, 'group')
assert_equal(['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'], grp_numbers)

res = self.app.get(url_for(controller='group', action='index', page=2))
assert 'href="/group?page=1"' in res
assert 'href="/group?sort=&q=&page=1"' in res
grp_numbers = scrape_search_results(res, 'group')
assert_equal(['21'], grp_numbers)

Expand Down

0 comments on commit 4d64ec6

Please sign in to comment.