more test fixes, one test remaining

This commit is contained in:
stvnrlly
2022-11-28 13:51:37 -05:00
parent 9689aaf89b
commit 77c0faf4e5
13 changed files with 26 additions and 381 deletions

View File

@@ -16,8 +16,8 @@ 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-03-31T22:59:59+00:00', 2020), # One minute before midnight (BST)
('2021-03-31T23:00:00+00:00', 2021), # Midnight (BST)
('2021-04-01T03:59:59+00:00', 2020), # One minute before midnight (BST)
('2021-04-01T04:00:00+00:00', 2021), # Midnight (BST)
('2021-12-12T12:12:12+01:00', 2021), # Later in the year
))
def test_get_financial_year(datetime_string, financial_year):