Skip to content

Commit 8fb5e71

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 46925c2 commit 8fb5e71

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/test_worldclock.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ def test_worldclock(monkeypatch, args, expected):
5151
}
5252
monkeypatch.setattr(os, "environ", mock_env)
5353
result = worldclock.convert_time(*args)
54-
output = "\n".join(
55-
f"{zone:25} {time}" for zone, time in result
56-
) + "\n"
54+
output = "\n".join(f"{zone:25} {time}" for zone, time in result) + "\n"
5755
assert output == expected
5856

57+
5958
def test_bad_timezone_json(monkeypatch, capsys):
6059
mock_env = {"TIMEZONE_LIST": '["CET" "Australia/Sydney", "America/Los_Angeles"]'}
6160
monkeypatch.setattr(os, "environ", mock_env)
@@ -130,7 +129,5 @@ def test_worldclock_with_date_offset(monkeypatch, args, expected):
130129
}
131130
monkeypatch.setattr(os, "environ", mock_env)
132131
result = worldclock.convert_time(*args)
133-
output = "\n".join(
134-
f"{zone:25} {time}" for zone, time in result
135-
) + "\n"
132+
output = "\n".join(f"{zone:25} {time}" for zone, time in result) + "\n"
136133
assert output == expected

0 commit comments

Comments
 (0)