Skip to content

Commit

Permalink
update unit tests to handle extra link title attributes
Browse files Browse the repository at this point in the history
- Store un-truncated names in link titles so they can be seen on hover if the link is truncated, #7742
  • Loading branch information
antuarc committed Nov 17, 2023
1 parent c892891 commit 6bd17d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan/tests/logic/action/test_init.py
Expand Up @@ -112,4 +112,4 @@ def test_before_view(self, app):
assert "string_not_found_in_rest_of_template" in res

res = app.get("/dataset?q=")
assert str(res.body).count("string_not_found_in_rest_of_template") == 2
assert str(res.body).count("string_not_found_in_rest_of_template") == 4
4 changes: 2 additions & 2 deletions ckanext/activity/tests/test_views.py
Expand Up @@ -107,7 +107,7 @@ def test_delete_org_by_updating_state(self, app):
)
assert "deleted the organization" in response
assert (
'<a href="/organization/{}">{}'.format(org["name"], org["title"])
'<a href="/organization/{0}" title="{1}">{1}'.format(org["name"], org["title"])
in response
)

Expand Down Expand Up @@ -994,7 +994,7 @@ def test_delete_group_by_updating_state(self, app):
)
assert "deleted the group" in response
assert (
'<a href="/group/{}">{}'.format(group["name"], group["title"])
'<a href="/group/{0}" title="{1}">{1}'.format(group["name"], group["title"])
in response
)

Expand Down

0 comments on commit 6bd17d3

Please sign in to comment.