1515
1616# this package
1717from domdf_python_tools import dates
18- from domdf_python_tools .dates import calc_easter
18+ from domdf_python_tools .dates import calc_easter , month_full_names
1919from domdf_python_tools .testing import count
2020
2121# TODO: test get_timezone
@@ -157,24 +157,9 @@ def test_utc_offset_no_pytz():
157157
158158# TODO: Finish
159159
160- months = [
161- "January" ,
162- "February" ,
163- "March" ,
164- "April" ,
165- "May" ,
166- "June" ,
167- "July" ,
168- "August" ,
169- "September" ,
170- "October" ,
171- "November" ,
172- "December" ,
173- ]
174-
175160
176161def test_parse_month ():
177- for month_idx , month in enumerate (months ):
162+ for month_idx , month in enumerate (month_full_names ):
178163
179164 month_idx += 1 # to make 1-indexed
180165
@@ -190,7 +175,7 @@ def test_parse_month():
190175 dates .parse_month (value ) # type: ignore
191176
192177
193- @pytest .mark .parametrize ("month_idx, month" , enumerate (months ))
178+ @pytest .mark .parametrize ("month_idx, month" , enumerate (month_full_names ))
194179def test_get_month_number_from_name (month_idx , month ):
195180 month_idx += 1 # to make 1-indexed
196181
@@ -225,7 +210,7 @@ def test_get_month_number_errors(value, match):
225210
226211
227212def test_check_date ():
228- for month_idx , month in enumerate (months ):
213+ for month_idx , month in enumerate (month_full_names ):
229214
230215 month_idx += 1 # to make 1-indexed
231216
0 commit comments