Skip to content

Commit ba8a54b

Browse files
committed
Linting.
1 parent 6d808e4 commit ba8a54b

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

tests/test_dates.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# this package
1717
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
1919
from 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

176161
def 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))
194179
def 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

227212
def 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

Comments
 (0)