mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Added/fixed tests to remove notify from message flow
This commit is contained in:
@@ -1870,7 +1870,8 @@ def test_api_ids_dont_show_on_option_pages_with_a_single_sender(
|
||||
[
|
||||
"Example (default and receives replies) Change Example ID: 1234",
|
||||
"Example 2 Change Example 2 ID: 5678",
|
||||
"Example 3 Change Example 3 ID: 9457",
|
||||
"US Notify Change US Notify ID: 9457",
|
||||
"Notify.gov Change Notify.gov ID: 9897",
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -282,6 +282,20 @@ def test_set_sender_redirects_if_one_sms_sender(
|
||||
assert session["sender_id"] == "1234"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("sender_data"),
|
||||
[
|
||||
(create_multiple_sms_senders()),
|
||||
],
|
||||
)
|
||||
def test_usnotify_and_notifygov_removed_if_not_default_sender(sender_data):
|
||||
from app.main.views.send import remove_notify_from_sender_options
|
||||
|
||||
sender_details = remove_notify_from_sender_options(sender_data)
|
||||
|
||||
assert len(sender_details) == 2
|
||||
|
||||
|
||||
def test_that_test_files_exist():
|
||||
assert len(test_spreadsheet_files) == 8
|
||||
assert len(test_non_spreadsheet_files) == 6
|
||||
|
||||
Reference in New Issue
Block a user