mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
fix some tests
This commit is contained in:
@@ -113,55 +113,55 @@ def test_view_conversation(
|
||||
[
|
||||
(
|
||||
"message-8",
|
||||
"yesterday at 14:59 US/Eastern",
|
||||
"yesterday at 14:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-7",
|
||||
"yesterday at 14:59 US/Eastern",
|
||||
"yesterday at 14:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-6",
|
||||
"yesterday at 16:59 US/Eastern",
|
||||
"yesterday at 16:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-5",
|
||||
"yesterday at 18:59 US/Eastern",
|
||||
"yesterday at 18:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-4",
|
||||
"yesterday at 20:59 US/Eastern",
|
||||
"yesterday at 20:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-3",
|
||||
"yesterday at 22:59 US/Eastern",
|
||||
"yesterday at 22:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-2",
|
||||
"yesterday at 22:59 US/Eastern",
|
||||
"yesterday at 22:59 America/New_York",
|
||||
),
|
||||
(
|
||||
"message-1",
|
||||
"yesterday at 23:00 US/Eastern",
|
||||
"yesterday at 23:00 America/New_York",
|
||||
),
|
||||
(
|
||||
expected_outbound_content,
|
||||
"yesterday at 00:00 US/Eastern",
|
||||
"yesterday at 00:00 America/New_York",
|
||||
),
|
||||
(
|
||||
expected_outbound_content,
|
||||
"yesterday at 00:00 US/Eastern",
|
||||
"yesterday at 00:00 America/New_York",
|
||||
),
|
||||
(
|
||||
expected_outbound_content,
|
||||
"yesterday at 00:00 US/Eastern",
|
||||
"yesterday at 00:00 America/New_York",
|
||||
),
|
||||
(
|
||||
expected_outbound_content,
|
||||
"yesterday at 00:00 US/Eastern",
|
||||
"yesterday at 00:00 America/New_York",
|
||||
),
|
||||
(
|
||||
expected_outbound_content,
|
||||
"yesterday at 00:00 US/Eastern",
|
||||
"yesterday at 00:00 America/New_York",
|
||||
),
|
||||
]
|
||||
):
|
||||
|
||||
@@ -550,14 +550,14 @@ def test_download_inbox(
|
||||
)
|
||||
assert response.get_data(as_text=True) == (
|
||||
"Phone number,Message,Received\r\n"
|
||||
"(202) 867-5300,message-1,07-01-2016 11:00 US/Eastern\r\n"
|
||||
"(202) 867-5300,message-2,07-01-2016 10:59 US/Eastern\r\n"
|
||||
"(202) 867-5300,message-3,07-01-2016 10:59 US/Eastern\r\n"
|
||||
"(202) 867-5302,message-4,07-01-2016 08:59 US/Eastern\r\n"
|
||||
"+33(0)1 12345678,message-5,07-01-2016 06:59 US/Eastern\r\n"
|
||||
"(202) 555-0104,message-6,07-01-2016 04:59 US/Eastern\r\n"
|
||||
"(202) 555-0104,message-7,07-01-2016 02:59 US/Eastern\r\n"
|
||||
"+68212345,message-8,07-01-2016 02:59 US/Eastern\r\n"
|
||||
"(202) 867-5300,message-1,07-01-2016 11:00 America/New_York\r\n"
|
||||
"(202) 867-5300,message-2,07-01-2016 10:59 America/New_York\r\n"
|
||||
"(202) 867-5300,message-3,07-01-2016 10:59 America/New_York\r\n"
|
||||
"(202) 867-5302,message-4,07-01-2016 08:59 America/New_York\r\n"
|
||||
"+33(0)1 12345678,message-5,07-01-2016 06:59 America/New_York\r\n"
|
||||
"(202) 555-0104,message-6,07-01-2016 04:59 America/New_York\r\n"
|
||||
"(202) 555-0104,message-7,07-01-2016 02:59 America/New_York\r\n"
|
||||
"+68212345,message-8,07-01-2016 02:59 America/New_York\r\n"
|
||||
)
|
||||
|
||||
|
||||
@@ -849,7 +849,7 @@ def test_should_show_upcoming_jobs_on_dashboard(
|
||||
assert normalize_spaces(page.select_one("main h2").text) == ("In the next few days")
|
||||
|
||||
assert normalize_spaces(page.select_one("a.banner-dashboard").text) == (
|
||||
"2 files waiting to send " "- sending starts today at 06:09 US/Eastern"
|
||||
"2 files waiting to send " "- sending starts today at 06:09 America/New_York"
|
||||
)
|
||||
|
||||
assert page.select_one("a.banner-dashboard")["href"] == url_for(
|
||||
|
||||
@@ -349,7 +349,7 @@ def test_should_show_scheduled_job(
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select("main div p")[1].text) == (
|
||||
"Example template - service one was scheduled on January 02, 2016 at 12:00 AM US/Eastern by Test User"
|
||||
"Example template - service one was scheduled on January 02, 2016 at 12:00 AM America/New_York by Test User"
|
||||
)
|
||||
|
||||
assert page.select("main p a")[0]["href"] == url_for(
|
||||
|
||||
@@ -497,7 +497,7 @@ def test_caseworker_sees_template_page_if_template_is_deleted(
|
||||
)
|
||||
assert (
|
||||
page.select("p.hint")[0].text.strip()
|
||||
== "This template was deleted today at 15:00 US/Eastern."
|
||||
== "This template was deleted today at 15:00 America/New_York."
|
||||
)
|
||||
|
||||
mock_get_deleted_template.assert_called_with(SERVICE_ONE_ID, template_id, None)
|
||||
@@ -1591,7 +1591,7 @@ def test_should_show_page_for_a_deleted_template(
|
||||
)
|
||||
assert (
|
||||
page.select("p.hint")[0].text.strip()
|
||||
== "This template was deleted today at 15:00 US/Eastern."
|
||||
== "This template was deleted today at 15:00 America/New_York."
|
||||
)
|
||||
assert "Delete this template" not in page.select_one("main").text
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ def test_get_upload_hub_page(
|
||||
|
||||
assert normalize_spaces(uploads[0].text.strip()) == (
|
||||
"some.csv "
|
||||
"Sent 1 January 2016 at 06:09 US/Eastern "
|
||||
"Sent 1 January 2016 at 06:09 America/New_York "
|
||||
"0 pending 8 delivered 2 failed"
|
||||
)
|
||||
assert uploads[0].select_one("a.file-list-filename-large")["href"] == (
|
||||
@@ -82,12 +82,12 @@ def test_uploads_page_shows_scheduled_jobs(
|
||||
("File Status"),
|
||||
(
|
||||
"even_later.csv "
|
||||
"Sending 1 January 2016 at 18:09 US/Eastern "
|
||||
"Sending 1 January 2016 at 18:09 America/New_York "
|
||||
"1 text message waiting to send"
|
||||
),
|
||||
(
|
||||
"send_me_later.csv "
|
||||
"Sending 1 January 2016 at 06:09 US/Eastern "
|
||||
"Sending 1 January 2016 at 06:09 America/New_York "
|
||||
"1 text message waiting to send"
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user