mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Fix dashboard bug/usage page
This commit is contained in:
@@ -20,10 +20,10 @@ def test_is_less_than_days_ago(date_from_db, expected_result):
|
||||
@pytest.mark.parametrize(
|
||||
("datetime_string", "financial_year"),
|
||||
[
|
||||
("2021-01-01T00:00:00+00:00", 2020), # Start of 2021
|
||||
("2021-04-01T03:59:59+00:00", 2020), # One minute before midnight (BST)
|
||||
("2021-10-01T04:05:00+00:00", 2021), # Midnight (BST)
|
||||
("2021-12-12T12:12:12+01:00", 2021), # Later in the year
|
||||
("2021-01-01T00:00:00+00:00", 2021), # Start of 2021
|
||||
("2021-04-01T03:59:59+00:00", 2021), # One minute before midnight (BST)
|
||||
("2021-10-01T04:05:00+00:00", 2022), # Midnight (BST)
|
||||
("2021-12-12T12:12:12+01:00", 2022), # Later in the year
|
||||
],
|
||||
)
|
||||
def test_get_financial_year(datetime_string, financial_year):
|
||||
|
||||
Reference in New Issue
Block a user