Skip to content

Commit d965444

Browse files
committed
fix: Reformat
1 parent 7e637bb commit d965444

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

tests/unit/test_cache_downloader.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@ def test_skips_download_when_done_file_exists(self, tmp_path):
181181
version_path.mkdir(parents=True)
182182
(version_path / f"{py_ver}-done").write_text("ok")
183183

184-
with patch.object(_mod, "BASE_PATH", str(tmp_path)), patch.object(
185-
_mod.subprocess, "Popen"
186-
) as mock_popen:
184+
with (
185+
patch.object(_mod, "BASE_PATH", str(tmp_path)),
186+
patch.object(_mod.subprocess, "Popen") as mock_popen,
187+
):
187188
download_dependency(release, py_ver, "fake-bucket")
188189

189190
mock_popen.assert_not_called()
@@ -204,9 +205,12 @@ def test_downloads_when_done_file_missing(self, tmp_path):
204205
mock_tar.communicate.return_value = (b"", b"")
205206
mock_tar.returncode = 0
206207

207-
with patch.object(_mod, "BASE_PATH", str(tmp_path)), patch.object(
208-
_mod.subprocess, "Popen", side_effect=[mock_aws, mock_tar]
209-
) as mock_popen:
208+
with (
209+
patch.object(_mod, "BASE_PATH", str(tmp_path)),
210+
patch.object(
211+
_mod.subprocess, "Popen", side_effect=[mock_aws, mock_tar]
212+
) as mock_popen,
213+
):
210214
download_dependency(release, py_ver, "fake-bucket")
211215

212216
assert mock_popen.call_count == 2

0 commit comments

Comments
 (0)