15
15
16
16
# this package
17
17
from 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
19
19
from domdf_python_tools .testing import count
20
20
21
21
# TODO: test get_timezone
@@ -157,24 +157,9 @@ def test_utc_offset_no_pytz():
157
157
158
158
# TODO: Finish
159
159
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
-
175
160
176
161
def test_parse_month ():
177
- for month_idx , month in enumerate (months ):
162
+ for month_idx , month in enumerate (month_full_names ):
178
163
179
164
month_idx += 1 # to make 1-indexed
180
165
@@ -190,7 +175,7 @@ def test_parse_month():
190
175
dates .parse_month (value ) # type: ignore
191
176
192
177
193
- @pytest .mark .parametrize ("month_idx, month" , enumerate (months ))
178
+ @pytest .mark .parametrize ("month_idx, month" , enumerate (month_full_names ))
194
179
def test_get_month_number_from_name (month_idx , month ):
195
180
month_idx += 1 # to make 1-indexed
196
181
@@ -225,7 +210,7 @@ def test_get_month_number_errors(value, match):
225
210
226
211
227
212
def test_check_date ():
228
- for month_idx , month in enumerate (months ):
213
+ for month_idx , month in enumerate (month_full_names ):
229
214
230
215
month_idx += 1 # to make 1-indexed
231
216
0 commit comments