We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42beb6 commit a529724Copy full SHA for a529724
1 file changed
tests/test_extract_manager.py
@@ -187,12 +187,11 @@ def test_execute_extract_tarfile_error(
187
188
with patch(
189
"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))
+ ), caplog.at_level(logging.ERROR):
+ result = extract_manager.execute_extract(str(archive_file))
193
194
- assert result is False
195
- assert "Extraction failed" in caplog.text
+ assert result is False
+ assert "Extraction failed" in caplog.text
196
197
@patch("pathlib.Path.mkdir")
198
def test_execute_extract_general_exception(
0 commit comments