mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Updated activity chart to include additional day (#2862)
This commit is contained in:
@@ -694,10 +694,11 @@ def test_doesnt_show_pagination_with_search_term(
|
||||
@pytest.mark.parametrize(
|
||||
("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"),
|
||||
("2016-01-03 11:09:00.000000+00:00", "Data available for 12 hours"),
|
||||
("2016-01-02 23:59:59.000000+00:00", "Data no longer available"),
|
||||
("2016-01-10 11:09:00.000000+00:00", "Data available for 8 days"),
|
||||
("2016-01-04 11:09:00.000000+00:00", "Data available for 2 days"),
|
||||
("2016-01-03 11:09:00.000000+00:00", "Data available for 1 day"),
|
||||
("2016-01-02 11:09:00.000000+00:00", "Data available for 12 hours"),
|
||||
("2016-01-01 23:59:59.000000+00:00", "Data no longer available"),
|
||||
],
|
||||
)
|
||||
@freeze_time("2016-01-10 12:00:00.000000")
|
||||
|
||||
@@ -348,7 +348,7 @@ def test_should_show_recent_templates_on_dashboard(
|
||||
service_id=SERVICE_ONE_ID,
|
||||
)
|
||||
|
||||
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=7)
|
||||
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=8)
|
||||
|
||||
headers = [
|
||||
header.text.strip() for header in page.find_all("h2") + page.find_all("h1")
|
||||
@@ -394,7 +394,7 @@ def test_should_not_show_recent_templates_on_dashboard_if_only_one_template_used
|
||||
page = client_request.get("main.service_dashboard", service_id=SERVICE_ONE_ID)
|
||||
main = page.select_one("main").text
|
||||
|
||||
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=7)
|
||||
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=8)
|
||||
|
||||
assert (
|
||||
stats[0]["template_name"] == "one"
|
||||
|
||||
@@ -467,10 +467,11 @@ def test_should_show_updates_for_scheduled_job_as_json(
|
||||
@pytest.mark.parametrize(
|
||||
("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"),
|
||||
("2016-01-03 11:09:00.000000+00:00", "Data available for 12 hours"),
|
||||
("2016-01-02 23:59:59.000000+00:00", "Data no longer available"),
|
||||
("2016-01-10 11:09:00.000000+00:00", "Data available for 8 days"),
|
||||
("2016-01-04 11:09:00.000000+00:00", "Data available for 2 days"),
|
||||
("2016-01-03 11:09:00.000000+00:00", "Data available for 1 day"),
|
||||
("2016-01-02 11:09:00.000000+00:00", "Data available for 12 hours"),
|
||||
("2016-01-01 23:59:59.000000+00:00", "Data no longer available"),
|
||||
],
|
||||
)
|
||||
@freeze_time("2016-01-10 12:00:00.000000")
|
||||
|
||||
Reference in New Issue
Block a user