From 02d1c2b26eaa21eadec3eb52a293954fd30da075 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Fri, 16 Feb 2024 18:01:36 -0800 Subject: [PATCH] fixed test --- app/main/views/send.py | 1 - tests/app/main/views/test_send.py | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 9f98c9a71..4460c20ad 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -870,7 +870,6 @@ def _check_notification(service_id, template_id, exception=None): back_link=back_link, back_link_from_preview=back_link_from_preview, choose_time_form=choose_time_form, - db_template=db_template, **(get_template_error_dict(exception) if exception else {}), simplifed_template=simplifed_template ) diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 0586d74e1..019331d64 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -1876,9 +1876,8 @@ def test_upload_csvfile_with_valid_phone_shows_all_numbers( ) assert "Select delivery time" in page.text - # assert "202 867 0749" in page.text - # assert "202 867 0750" not in page.text - # assert "Only showing the first 50 rows" in page.text + assert "202 867 0749" not in page.text + assert "202 867 0750" not in page.text mock_get_notification_count.assert_called_with(service_one["id"]) @@ -2611,24 +2610,17 @@ def test_preview_notification_shows_preview( session["recipient"] = "2028675301" session["placeholders"] = {} - # with client_request.session_transaction() as session: - # session["scheduled_for"] = when page = client_request.get( "main.preview_notification", service_id=service_one["id"], template_id=fake_uuid ) - # if when: - # assert page.h1.text.strip() == when - # else: - # assert page.h1.text.strip() == "Now" assert page.h1.text.strip() == "Preview" assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for( "main.check_notification", service_id=service_one["id"], template_id=fake_uuid, ) - # assert tour not visible assert not page.select(".banner-tour")