From cc3d6521cf08d7fa53b58e54f2892f7575fece8f Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 25 Aug 2015 15:39:35 +0100 Subject: [PATCH] [#2554] Fix ranges in group list tests --- ckan/tests/controllers/test_group.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ckan/tests/controllers/test_group.py b/ckan/tests/controllers/test_group.py index 3d30d7486c3..3c285c539fd 100644 --- a/ckan/tests/controllers/test_group.py +++ b/ckan/tests/controllers/test_group.py @@ -156,7 +156,7 @@ class TestGroupIndex(helpers.FunctionalTestBase): def test_group_index(self): app = self._get_test_app() - for i in xrange(1, 25): + for i in xrange(1, 26): _i = '0' + str(i) if i < 10 else i factories.Group( name='test-group-{0}'.format(_i), @@ -166,7 +166,7 @@ def test_group_index(self): action='index') response = app.get(url) - for i in xrange(1, 21): + for i in xrange(1, 22): _i = '0' + str(i) if i < 10 else i assert_in('Test Group {0}'.format(_i), response) @@ -177,7 +177,7 @@ def test_group_index(self): page=1) response = app.get(url) - for i in xrange(1, 21): + for i in xrange(1, 22): _i = '0' + str(i) if i < 10 else i assert_in('Test Group {0}'.format(_i), response) @@ -188,7 +188,7 @@ def test_group_index(self): page=2) response = app.get(url) - for i in xrange(22, 25): + for i in xrange(22, 26): assert_in('Test Group {0}'.format(i), response) assert 'Test Group 21' not in response