From 8d3658a8d428b7eb6adbe685e8a052c4038ea80a Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Mon, 7 Jun 2021 17:23:30 -0700 Subject: [PATCH] Clearer language for single source deletion --- securedrop/journalist_app/utils.py | 2 +- securedrop/tests/functional/journalist_navigation_steps.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/securedrop/journalist_app/utils.py b/securedrop/journalist_app/utils.py index 1854d2b6688..28d5f221bc0 100644 --- a/securedrop/journalist_app/utils.py +++ b/securedrop/journalist_app/utils.py @@ -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) diff --git a/securedrop/tests/functional/journalist_navigation_steps.py b/securedrop/tests/functional/journalist_navigation_steps.py index f2f3608e00a..4d5eb2f356f 100644 --- a/securedrop/tests/functional/journalist_navigation_steps.py +++ b/securedrop/tests/functional/journalist_navigation_steps.py @@ -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)