mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
modified serialized method and schema
This commit is contained in:
@@ -3,13 +3,13 @@ from freezegun import freeze_time
|
||||
|
||||
|
||||
# see get_financial_year for conversion of financial years.
|
||||
@freeze_time("2001-03-31 22:59:59.999999")
|
||||
@freeze_time("2017-03-31 22:59:59.999999")
|
||||
def test_get_current_financial_year_start_year_before_march():
|
||||
current_fy = get_current_financial_year_start_year()
|
||||
assert current_fy == 2000
|
||||
assert current_fy == 2016
|
||||
|
||||
|
||||
@freeze_time("2001-03-31 23:00:00.000000")
|
||||
@freeze_time("2017-03-31 23:00:00.000000")
|
||||
def test_get_current_financial_year_start_year_after_april():
|
||||
current_fy = get_current_financial_year_start_year()
|
||||
assert current_fy == 2001
|
||||
assert current_fy == 2017
|
||||
|
||||
Reference in New Issue
Block a user