Skip to content

Commit

Permalink
[#4801] Update non-root test using weird URL and fix related bug in e…
Browse files Browse the repository at this point in the history
…xample theme plugin
  • Loading branch information
amercader committed Dec 19, 2019
1 parent 8ee2148 commit e4d523e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ckan/tests/test_none_root.py
Expand Up @@ -7,7 +7,7 @@
@pytest.mark.ckan_config(u"ckan.plugins", u"example_theme_v15_fanstatic")
@pytest.mark.usefixtures(u"with_plugins")
def test_resource_url(app):
content = app.get(u"/en/base.html")
content = app.get(u"/")
if u"example_theme.css" not in content:
assert u"example_theme.min.css" in content
assert u'href="/data/webassets/example_theme' in content
2 changes: 1 addition & 1 deletion ckanext/example_theme_docs/custom_config_setting/plugin.py
Expand Up @@ -30,7 +30,7 @@ def most_popular_groups():
# Get a list of all the site's groups from CKAN, sorted by number of
# datasets.
groups = toolkit.get_action('group_list')(
data_dict={'sort': 'packages desc', 'all_fields': True})
data_dict={'sort': 'package_count desc', 'all_fields': True})

# Truncate the list to the 10 most popular groups only.
groups = groups[:10]
Expand Down
2 changes: 1 addition & 1 deletion ckanext/example_theme_docs/v12_extra_public_dir/plugin.py
Expand Up @@ -10,7 +10,7 @@ def most_popular_groups():
# Get a list of all the site's groups from CKAN, sorted by number of
# datasets.
groups = toolkit.get_action('group_list')(
data_dict={'sort': 'packages desc', 'all_fields': True})
data_dict={'sort': 'package_count desc', 'all_fields': True})

# Truncate the list to the 10 most popular groups only.
groups = groups[:10]
Expand Down
2 changes: 1 addition & 1 deletion ckanext/example_theme_docs/v15_fanstatic/plugin.py
Expand Up @@ -10,7 +10,7 @@ def most_popular_groups():
# Get a list of all the site's groups from CKAN, sorted by number of
# datasets.
groups = toolkit.get_action('group_list')(
data_dict={'sort': 'packages desc', 'all_fields': True})
data_dict={'sort': 'package_count desc', 'all_fields': True})

# Truncate the list to the 10 most popular groups only.
groups = groups[:10]
Expand Down
Expand Up @@ -10,7 +10,7 @@ def most_popular_groups():
# Get a list of all the site's groups from CKAN, sorted by number of
# datasets.
groups = toolkit.get_action(u'group_list')(
data_dict={u'sort': u'packages desc', u'all_fields': True})
data_dict={u'sort': u'package_count desc', u'all_fields': True})

# Truncate the list to the 10 most popular groups only.
groups = groups[:10]
Expand Down

0 comments on commit e4d523e

Please sign in to comment.