Use a variable for the massive month date conversion.

Document the massive date function.
Document the get_april_fools function.
This commit is contained in:
Rebecca Law
2017-01-09 15:34:24 +00:00
parent 88e1e58f24
commit a1d8ca9364
2 changed files with 24 additions and 16 deletions

View File

@@ -1209,4 +1209,6 @@ def test_get_financial_year():
def test_get_april_fools():
assert str(get_april_fools(2016)) == '2016-03-31 23:00:00'
april_fools = get_april_fools(2016)
assert str(april_fools) == '2016-03-31 23:00:00'
assert april_fools.tzinfo is None