aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/tests/test_month.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2021-05-18 20:26:07 +0100
committerMatthew Lemon <matt@matthewlemon.com>2021-05-18 20:26:07 +0100
commit0f21c97f06bccd2260931e7543a24dc618f355b4 (patch)
tree61ab91a2c9665c2e67b7581652dd2939109266c7 /datamaps/tests/test_month.py
parent62617d6ef952c24e134b4bc403263ed990a42ec8 (diff)
fixed test related to getting the correct year from a Month()
Diffstat (limited to 'datamaps/tests/test_month.py')
-rw-r--r--datamaps/tests/test_month.py1
1 files changed, 1 insertions, 0 deletions
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)