From 0f21c97f06bccd2260931e7543a24dc618f355b4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 18 May 2021 20:26:07 +0100 Subject: fixed test related to getting the correct year from a Month() --- datamaps/tests/test_month.py | 1 + 1 file changed, 1 insertion(+) (limited to 'datamaps/tests/test_month.py') diff --git a/datamaps/tests/test_month.py b/datamaps/tests/test_month.py index a533cd0..de53545 100644 --- a/datamaps/tests/test_month.py +++ b/datamaps/tests/test_month.py @@ -30,6 +30,7 @@ def test_quarter_objects_have_months(): def test_month(): m1 = Month(1, 2021) assert m1.name == "January" + assert m1.year == 2021 m2 = Month(9, 2021) assert m2.name == "September" assert m2.start_date == datetime.date(2021, 9, 1) -- cgit v1.2.3