Skip to content

Commit a529724

Browse files
committed
test: improve style
1 parent d42beb6 commit a529724

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/test_extract_manager.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,11 @@ def test_execute_extract_tarfile_error(
187187

188188
with patch(
189189
"tarfile.open", side_effect=tarfile.TarError("Invalid tar file")
190-
):
191-
with caplog.at_level(logging.ERROR):
192-
result = extract_manager.execute_extract(str(archive_file))
190+
), caplog.at_level(logging.ERROR):
191+
result = extract_manager.execute_extract(str(archive_file))
193192

194-
assert result is False
195-
assert "Extraction failed" in caplog.text
193+
assert result is False
194+
assert "Extraction failed" in caplog.text
196195

197196
@patch("pathlib.Path.mkdir")
198197
def test_execute_extract_general_exception(

0 commit comments

Comments
 (0)