mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Reformatted and cleaned up more tests.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -37,7 +37,7 @@ def test_old_jobs_hub_redirects(
|
||||
],
|
||||
)
|
||||
@pytest.mark.parametrize(
|
||||
"status_argument, expected_api_call",
|
||||
("status_argument", "expected_api_call"),
|
||||
[
|
||||
(
|
||||
"",
|
||||
@@ -247,8 +247,8 @@ def test_should_show_job_with_sending_limit_exceeded_status(
|
||||
|
||||
@freeze_time("2020-01-10 1:0:0")
|
||||
@pytest.mark.parametrize(
|
||||
"created_at, processing_started, expected_message",
|
||||
(
|
||||
("created_at", "processing_started", "expected_message"),
|
||||
[
|
||||
# Recently created, not yet started
|
||||
(datetime(2020, 1, 10, 0, 0, 0), None, ("No messages to show yet…")),
|
||||
# Just started
|
||||
@@ -284,7 +284,7 @@ def test_should_show_job_with_sending_limit_exceeded_status(
|
||||
"These messages have been deleted because they were sent more than 7 days ago"
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_should_show_old_job(
|
||||
client_request,
|
||||
@@ -469,7 +469,7 @@ def test_should_show_updates_for_scheduled_job_as_json(
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"job_created_at, expected_message",
|
||||
("job_created_at", "expected_message"),
|
||||
[
|
||||
("2016-01-10 11:09:00.000000+00:00", "Data available for 7 days"),
|
||||
("2016-01-04 11:09:00.000000+00:00", "Data available for 1 day"),
|
||||
|
||||
Reference in New Issue
Block a user