Skip to content

Commit 0eb2352

Browse files
committed
Linting
1 parent 149177c commit 0eb2352

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

domdf_python_tools/terminal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ def __enter__(self):
258258
def __exit__(self, exc_t, exc_v, tb):
259259
new_locals = {
260260
k: v
261-
for k, v in self.parent_frame.f_locals.items() # type: ignore
261+
for k,
262+
v in self.parent_frame.f_locals.items() # type: ignore
262263
if k not in self.locals_on_entry
263264
}
264265

tests/test_dates.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
test_date = datetime.datetime(1996, 10, 13, 2, 20).replace(tzinfo=pytz.utc)
2020
today = datetime.datetime.utcnow().replace(tzinfo=pytz.utc) # make sure UTC
2121

22-
2322
# TODO: travis matrix to test without pytz installed
2423
# TODO: test get_timezone
2524

@@ -180,15 +179,18 @@ def test_get_month_number_from_no(month_idx):
180179
assert dates.get_month_number(month_idx) == month_idx
181180

182181

183-
@pytest.mark.parametrize("value, match", [
184-
(0, "The given month is not recognised."),
185-
(-1, "The given month is not recognised."),
186-
(13, "The given month is not recognised."),
187-
("abc", "Unrecognised month value"),
188-
('0', "Unrecognised month value"),
189-
("-1", "Unrecognised month value"),
190-
("13", "Unrecognised month value"),
191-
])
182+
@pytest.mark.parametrize(
183+
"value, match",
184+
[
185+
(0, "The given month is not recognised."),
186+
(-1, "The given month is not recognised."),
187+
(13, "The given month is not recognised."),
188+
("abc", "Unrecognised month value"),
189+
('0', "Unrecognised month value"),
190+
("-1", "Unrecognised month value"),
191+
("13", "Unrecognised month value"),
192+
]
193+
)
192194
def test_get_month_number_errors(value, match):
193195
with pytest.raises(ValueError, match=match):
194196
dates.get_month_number(value)

0 commit comments

Comments
 (0)