Skip to content

Commit

Permalink
And again i merged stateful tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Oct 8, 2019
1 parent b33a29d commit 776a3e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ckan/tests/legacy/functional/test_pagination.py
Expand Up @@ -64,7 +64,6 @@ def test_package_search_p1(self):
pkg_numbers = scrape_search_results(res, 'dataset')
assert_equal(['50', '49', '48', '47', '46', '45', '44', '43', '42', '41', '40', '39', '38', '37', '36', '35', '34', '33', '32', '31'], pkg_numbers)

def test_package_search_p2(self):
res = self.app.get(url_for('dataset.search', q='groups:group_00', page=2))
assert 'href="/dataset/?q=groups%3Agroup_00&page=1"' in res
pkg_numbers = scrape_search_results(res, 'dataset')
Expand All @@ -76,7 +75,6 @@ def test_group_datasets_read_p1(self):
pkg_numbers = scrape_search_results(res, 'group_dataset')
assert_equal(['50', '49', '48', '47', '46', '45', '44', '43', '42', '41', '40', '39', '38', '37', '36', '35', '34', '33', '32', '31'], pkg_numbers)

def test_group_datasets_read_p2(self):
res = self.app.get(url_for(controller='group', action='read', id='group_00', page=2))
assert 'href="/group/group_00?page=1' in res, res
pkg_numbers = scrape_search_results(res, 'group_dataset')
Expand Down
2 changes: 1 addition & 1 deletion ckan/tests/migration/test_revision_legacy_code.py
Expand Up @@ -205,7 +205,7 @@ def test_09_package_alter(self):
model.Session.remove()
make_package_revision(model.Package.by_name('annakarenina_changed2'))

def test_13_get_package_in_past(self):
# def test_13_get_package_in_past(self):

context = {'model': model,
'session': model.Session}
Expand Down

0 comments on commit 776a3e3

Please sign in to comment.