From 5234c96287c5c1c9274a3e9bb1b892e30a0370ab Mon Sep 17 00:00:00 2001 From: q0w <43147888+q0w@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:28:31 +0300 Subject: [PATCH] Test AlreadyInstalledCandidate --- tests/functional/test_install_reqs.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/functional/test_install_reqs.py b/tests/functional/test_install_reqs.py index f4f89360fa5..642a0346077 100644 --- a/tests/functional/test_install_reqs.py +++ b/tests/functional/test_install_reqs.py @@ -839,3 +839,16 @@ def test_install_options_no_deps(script: PipTestEnvironment) -> None: ) script.assert_installed(A="0.1.0") script.assert_not_installed("B", "C") + + # AlreadyInstalledCandidate should not install dependencies + script.pip( + "install", + "--no-cache-dir", + "--find-links", + script.scratch_path, + "-r", + requirements_txt, + "--only-binary=:all:", + ) + script.assert_installed(A="0.1.0") + script.assert_not_installed("B", "C")