mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Change get_financial_year to return ending date as 1 microsecond earlier.
That way we can write the queries as between start and end dates, making it easier to read. This makes more sense.
This commit is contained in:
@@ -4,7 +4,7 @@ from app.dao.date_util import get_financial_year, get_april_fools
|
||||
def test_get_financial_year():
|
||||
start, end = get_financial_year(2000)
|
||||
assert str(start) == '2000-03-31 23:00:00'
|
||||
assert str(end) == '2001-03-31 23:00:00'
|
||||
assert str(end) == '2001-03-31 22:59:59.999999'
|
||||
|
||||
|
||||
def test_get_april_fools():
|
||||
|
||||
Reference in New Issue
Block a user