diff options
author | Stéphane Bidoul <stephane.bidoul@acsone.eu> | 2016-02-08 14:04:10 +0100 |
---|---|---|
committer | Stéphane Bidoul <stephane.bidoul@acsone.eu> | 2016-02-08 16:42:54 +0100 |
commit | 1d759b3afa6056ba17157b90534791d40d33f8f6 (patch) | |
tree | e2c4aa72d0123a60f13d79171f4f123e77fc0535 /tests | |
parent | 61f75c40adc06fdb5aa21d2a1e3c0101b83077a9 (diff) | |
download | pip-1d759b3afa6056ba17157b90534791d40d33f8f6.tar.gz |
Allow installing modules from a vcs subdirectory in non-editable mode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/test_install_reqs.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/test_install_reqs.py b/tests/functional/test_install_reqs.py index 73fc84444..42ea36421 100644 --- a/tests/functional/test_install_reqs.py +++ b/tests/functional/test_install_reqs.py @@ -192,6 +192,19 @@ def test_install_local_editable_with_subdirectory(script): @pytest.mark.network +def test_install_local_with_subdirectory(script): + version_pkg_path = _create_test_package_with_subdirectory(script, + 'version_subdir') + result = script.pip( + 'install', + '%s#egg=version_subpkg&subdirectory=version_subdir' % + ('git+file://%s' % version_pkg_path,) + ) + + result.assert_installed('version_subpkg.py', editable=False) + + +@pytest.mark.network def test_wheel_user_with_prefix_in_pydistutils_cfg(script, data, virtualenv): # Make sure wheel is available in the virtualenv script.pip('install', 'wheel') |