Move away from soon-to-be-removed PipInstaller

This commit is contained in:
Obeida Shamoun
2023-05-04 13:05:02 +02:00
parent a94933e7ef
commit a489fe2c53
4 changed files with 21 additions and 18 deletions

View File

@@ -81,8 +81,8 @@ def test_propagates_exceptions_during_installation(
with mock.patch.object(
_poetry,
"PipInstaller",
**{"return_value.install.side_effect": fake_exception},
"Executor",
**{"return_value.execute.side_effect": fake_exception},
):
with pytest.raises(ValueError) as exc_info:
installer.install(poetry, venv, to_install, num_threads)