Skip to content

Commit

Permalink
Fix broken tests because of 4851d
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 18, 2012
1 parent 4851d2d commit 62b33b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/tests/functional/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TestPaginationGroup(TestController):
def setup_class(cls):
# no. entities per page is hardcoded into the controllers, so
# create enough of each here so that we can test pagination
cls.num_groups = 21
cls.num_groups = 22

groups = [u'group_%s' % str(i).zfill(2) for i in range(0, cls.num_groups)]

Expand All @@ -100,12 +100,12 @@ def test_group_index(self):
res = self.app.get(url_for(controller='group', action='index'))
assert 'href="/group?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'], grp_numbers)
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
grp_numbers = scrape_search_results(res, 'group')
assert_equal(['20'], grp_numbers)
assert_equal(['21'], grp_numbers)

class TestPaginationUsers(TestController):
@classmethod
Expand Down

0 comments on commit 62b33b1

Please sign in to comment.