Skip to content

Commit

Permalink
Clearer language for single source deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Jun 8, 2021
1 parent f2a0fae commit 8d3658a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion securedrop/journalist_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def col_delete(cols_selected: List[str]) -> werkzeug.Response:
num = len(cols_selected)

success_message = ngettext(
"The account and all data for {n} source have been deleted.",
"The account and all data for the source have been deleted.",
"The accounts and all data for {n} sources have been deleted.",
num).format(n=num)

Expand Down
2 changes: 1 addition & 1 deletion securedrop/tests/functional/journalist_navigation_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _journalist_clicks_delete_collections_on_second_modal(self):
def collection_deleted():
if not self.accept_languages:
flash_msg = self.driver.find_element_by_css_selector(".flash")
assert "The account and all data for 1 source have been deleted." in flash_msg.text
assert "The account and all data for the source have been deleted." in flash_msg.text

self.wait_for(collection_deleted)

Expand Down

0 comments on commit 8d3658a

Please sign in to comment.